hey every one I want to alert value of n from this string
$('.or开发者_高级运维bit-bullets:has( > li.active:nth-child)');
If you want the index of a li
with the class active
inside an element with the class orbit-bullits
you could do something like this:
$('.orbit-bullets>li.active').index()
this will return a 0-based index
精彩评论