Archive for August, 2008

There are many ways of finding things in the DOM - sometimes, many ways of evaluating apparently the same expression. For example, CSS and JQuery allow you to find elements by id, using an expression of the form
var myElement=$(”#my-element-id”);
as well as the apparently equivalent expression
var myElement=$(”[id=my-element-id]“);
However, these expressions are different in [...]

In the interests of aiming towards slightly more bite-sized blog postings, I thought I would share with you some possibly unsuspected gems in a favorite JQuery method I kicked over recently.
Basic extending
jQuery.extend is more commonly seen as part of plugin code - the jQuery plugin model simply works by “extension” of the jQuery object itself [...]