I have used the line below in my app. But now I need to parse the html loaded before I show it. Whats the best way to get certain html elements.
$(\"#div\").
jQuery.ajax({ url:'your_url', type:'get', dataType:'html', success:function(data) { var _html= jQuery(data); //do some thing with html eg: _html.find('div').addClass('red') jQuery('#target').html(_html); } });