jquery 定位input元素的几种方法小结
<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"。
您可能感兴趣的文章:
jquery 定位input元素的几种方法小结
JQuery元素控制方法汇总
Jquery常用选择器的几点知识
在jQuery中 常用的选择器介绍
JQuery 常用方法基础教程
jQuery 方法大全方便学习参考
jQuery设计思想完整篇
基于jQuery选择器的整理集合
jQuery选择器总结
jquery选择器(常用选择器说明)