<script language=”javascript”>
$(function(){
$(“table.className1 tr:nth-child(odd)”).addClass(“className2″);
});
</script>
(even/odd)
<script language=”javascript”>
$(function(){
$(“table.className1 tr:nth-child(odd)”).addClass(“className2″);
});
</script>
(even/odd)
Tags: jQuery
This entry was posted on 2010年01月27日, 7:20 上午 and is filed under jQuery. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
| 一 | 二 | 三 | 四 | 五 | 六 | 日 |
|---|---|---|---|---|---|---|
| « 四 | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
No related posts.
Arclite theme by digitalnature | powered by WordPress