Trying to find div element with id=\"result\" in returned data from .ajax() using .find(). Unfortunately, alert(res
div
id=\"result\"
.ajax()
.find()
alert(res
do not forget to do it with parse html. like:
$.ajax({ url: url, cache: false, success: function(response) { var parsed = $.parseHTML(response); result = $(parsed).find("#result"); } });
has to work :)