jquery 定位元素几种方法
<html> <table class=”ed”> <tr> <td><input type="text"></input></td> <td><input type="text"></input></td> <td><input type="button"></input></td> <td><input type="text"></input></td> </tr> </table> </html>
$(“.ed input:text)”).eq(3)
$(“.ed input:text:eq(3)”)
$(“.ed input[type=”text”]”).eq(3)
$(“.ed input[type=”text”]:eq(3)”)
其中.ed中ed是class="ed"。
装载:http://www.cnblogs.com/youk/archive/2011/12/01/2270024.html