日期:2014-05-16  浏览次数:20369 次

jquery 获取某一dom下控件
JScript code

<tr><td><input type='checkbox' id='1' /><lable id="d" for="1"></label></td></tr>


如何找出checkbox thks

------解决方案--------------------
1. 既然设置了id,为什么不用id选择器获取?不过id值不能以数字开头。
<tr><td><input type='checkbox' id='chk1' /><lable id="d" for="chk1"></label></td></tr>
$("#chk1")

2. 使用after()方法在指定元素对象后面追加。http://api.jquery.com/after/