Can GET function process HTML
I am using a GET function to process an external file, but I need only part of it.
- $.ajax({
- type: 'GET',
- url: 'topstatistics_nieuwsbe.html',
- dataType: 'html',
- success: function(html, textStatus) {
- $('#summary').append(html);
-
- },
- error: function(xhr, textStatus, errorThrown) {
- //alert('An error occurred! ' + ( errorThrown ? errorThrown : xhr.status );
- } // end error
-
- }); // end ajax
So how to 'process' html : e.g. how to remove a certain div inside the html ?