Sibling + selector does't work in IE7 when using jQuery

前端 未结 3 1905
后悔当初
后悔当初 2021-01-20 09:08

Trying to select a sibling element using jQuery and it doesn\'t work in IE7.

Here is my sample code: http://jsfiddle.net/y7AHz/6/ (click Run to see result)

3条回答
  •  攒了一身酷
    2021-01-20 09:38

    try only this it works in ie7 also

    var numberOfListItems = $("ul.ulContainer li").length;
    

提交回复
热议问题