欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jquery 定位input元素的幾種方法小結(jié)

 更新時間:2013年07月28日 15:18:21   作者:  
本文以定位到第三個文本框為例為大家詳細(xì)介紹下jquery 定位元素幾種方法,感興趣的朋友可以參考下,希望對大家有所幫助
復(fù)制代碼 代碼如下:

<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>

需要定位到第三個文本框的時候:
復(fù)制代碼 代碼如下:

$(“.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"。

相關(guān)文章

最新評論