---
title: "jquery获取 修改td中的值"
author: "pany"
date: "2011-01-07T11:55:59Z"
tags: []
categories: ["Web前端"]
slug: "jquery-td"
draft: true
lastmod: "2011-01-07T11:56:24Z"
id: 865078
url: "https://pany.iteye.com/blog/865078"
---

//获取table1,第7个tr的第二个td的值。 
$("#table1 tr:eq(1) td:nth-child(1)").html(value);设置td中的值
$("#table1 tr:eq(1) td:nth-child(1)").html();获取td中的值
<table id="table1">
<tr>
<td>test</td>
</tr>
</table