When using the jQuery.ajax() method, I am struggling to filter the data that is returned to get exactly what I need. I know this is easy using .load()
jQuery.ajax()
.load()
This is how I was able to get it working thanks to @Matt
$.ajax({ type: "GET", url: url, dataType: 'html', success: function(data) { $('#foo').html( $('').html(data).find('#foo').html() ); } });