日期:2014-05-17 浏览次数:20596 次
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript">
function setValue() {
for (var i = 1; i <= 5; i++) {
$("#tb td[value='"+i+"']").html("我是"+i);
}
}
</script>
</head>
<body>
<table id="tb">
<tr>
<td>30</td>
<td>31</td>
<td value="1">1</td>
<td value="2">2</td>
<td value="3">3</td>
<td value="4">4</td>
<td value="5">5</td>
</tr>
<tr>
<td>6</td>
<td>7</td>
<td>8</td>
&nb