Is it possible to select only specific part from the return data?
this is my code
$(document).ready(function(){
$("a[href*='delete']").click(function(){
var url = $(this).attr('href');
url = 'http://localhost'+url;
$.ajax({
type : 'GET',
url : url,
success : function(data){
$('#table_div').html(data);
}
});
return false;
});
});
if I use above codes it set the complete page to #table_div
. so I need to select only that #table_div
data form the data
. how do I do that ?