Trying to select a sibling element using jQuery and it doesn t work in IE7.
http://jsfiddle.net/y7AHz/6/“rel=“nofollow” (click Run to see result)
var numberOfListItems = $("#txtInput + ul.ulContainer li").length;
$("#output").text(numberOfListItems);
在IE8 >,Safari公司工程(清单编号为3)。