jQuery 1.9: AJAX methods and well-formed HTML
HTML strings must be well-formed when passed to the jQuery's selector engine. This also affects AJAX methods.
Web programming languages and standards.
HTML strings must be well-formed when passed to the jQuery's selector engine. This also affects AJAX methods.
How to create a select box on posts and pages to let users choose their preferred WordPress sidebar.
The jQuery's text() method also affects the text of children elements. Here's a solution to this problem.