Extract HTML from XML in a jQuery AJAX request
This is a bit tricky when you are parsing XML with jQuery. As you will realize, all HTML passed is ignored, and only the text is displayed. I have seen many people do this, which unfortunately won’t work! $(xml).find(’element’).each(function(){ if($(this).text() < 0){ alert($(this).text()) } }); Now this will throw an error, you can’t take HTML [...]
Continue Reading →