Q:

How I select only specific div from the data

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 ?

A:

have you tried this ?
$(data).filter('#table_div');
$(data).find('#table_div');

see this reference
Hope, it will helps you. Thanks. !!

