开发者

jquery 1.3 not(:first) problem in IE

开发者 https://www.devze.com 2022-12-30 00:14 出处:网络
i have 3 div tags of same class, <div class=\"redc\"> <p>sdfs</p> </div> <div class=\"redc\">

i have 3 div tags of same class,

<div class="redc">
<p>sdfs</p>
</div>

<div class="redc">
<p>sdfs</p开发者_如何学运维>
</div>

<div class="redc">
<p>sdfs</p>
</div>

to select div other than first ,$(".redc:not(:first)") works fine in mozilla,but not in IE

Please suggest any alternative for IE

Note: vesion jquery 1.3


If you just want to get rid of the first item, you can use the slice function:

$('.redc').slice(1);
0

精彩评论

暂无评论...
验证码 换一张
取 消