Monthly Archives: June 2011

Selecting Child Elements in jQuery

I was recently asked whether it would be ‘better/quicker’ to replace $(‘ul’).children(‘li’).children(‘a’) with $(‘ul li a’) My initial response was to warn that these two lines of code don’t actually do the same thing. As explained in the jQuery API … Continue reading

Posted in JavaScript | 1 Comment