Quick Tips is a series of posts designed to show some quick html, css and php tips that you may find useful in your every day work or personal projects.


The jQuery function allows for a second, lesser known about, parameter which tells the function to only search for the element within the context of the given element.

  • List item 1



In this scenario the selector will navigate through the menu unordered list and select the list item with “List item 2″ in it, having never seen the other unordered list.

Instead of having to work its way through the entire DOM, containing perhaps several hundred of the same element, the function can search within the smaller search area and provide results faster and more accurate.


If you wish to submit a quick tip to this section please contact me..