Trying to find div element with "result" id in returned from ajax call html content with no luck. Here is my code:
$.ajax({
url: url,
cache: false,
success: function(response) {
result = $(response).find("#result");
alert(response); // works as expected (returns all html)
alert(result); // returns [object Object]
}
});
Unfortunately, alert(result)
doesn't return div#result. Any suggestions?
Thank you!