Fear of the DOM: why web developers use jQuery
Many web developers use the jQuery library simply because they don't know the DOM.
Tips, techniques, plugin and widget development, tutorials, integration with mobile and desktop web apps, theory, tests and OOP.
Many web developers use the jQuery library simply because they don't know the DOM.
HTML strings must be well-formed when passed to the jQuery's selector engine. This also affects AJAX methods.
The jQuery's text() method also affects the text of children elements. Here's a solution to this problem.