Hey, So I'm using the starterkit to go through the basics with jQuery and had a question on the expected behavior of this function: $(document).ready(function() { $("li").not(":has(ul)").css("border", "1px solid black"); });
Isn't this saying: Select all <li> elements, if the li element is not contained in an <ul> then apply the style. If so, then this doesn't appear to be working properly in the starterkit.html e.g., if I add this to the page: <ul id="bulletlist"> <li>First element</li> <li>Second element</li> <li>Third element</li> </ul> wouldn't the .not be applied to ul and therefore in this case the style shouldn't be applied? This isn't what I'm seeing. thanks, K