Trying to select sibling element using jQuery and it does not work in IE7.
Here is my sample code: http://jsfiddle.net/y7AHz/6/ (click "Run" to see the result)
var numberOfListItems = $("#txtInput + ul.ulContainer li").length;
$("#output").text(numberOfListItems);
In IE8, Firefox, Safari it works (# from the itmes list goes to 3).
source
share