This article is pretty ok, but some examples given struck me as a little weird.
Example for "live()":
var newDiv = document.createElement('div');
newDiv.appendChild(document.createTextNode('hello, world!'));
[...]
document.body.appendChild(newDiv);
jQuery simplifies DOM elements creation and insertion:
var newDiv = $('<div>hello, world!</div>').appendTo('body');
It is kind of funny to see plain old DOM createElement/createTextNode in article about intricacies of jQuery. All of DOM elements creation in article uses non-jQuery mechanisms. Only one commenter mentioned that jQuery support easy elements creation/insertion. That way, article promotes somewhat half-baked usage of jQuery.
Example for "live()": var newDiv = document.createElement('div'); newDiv.appendChild(document.createTextNode('hello, world!')); [...] document.body.appendChild(newDiv);
jQuery simplifies DOM elements creation and insertion: var newDiv = $('<div>hello, world!</div>').appendTo('body');
It is kind of funny to see plain old DOM createElement/createTextNode in article about intricacies of jQuery. All of DOM elements creation in article uses non-jQuery mechanisms. Only one commenter mentioned that jQuery support easy elements creation/insertion. That way, article promotes somewhat half-baked usage of jQuery.