I am successfully submitting a form using jQuery. I have code snippit below that I am trying to use some ajax functions to go thru the results page that is sent back by the form.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> That's the results page of the form above. I can fetch and show the whole page but this does not work (below). This snippit is an .ajax function.. just the part where its failing. is datatype wrong? If I change $('#basic').hide().html(response).fadeIn(1500); to $ ('#basic').hide().html(data).fadeIn(1500); the page shows in the #basic div tag just fine. Why wont it get the #alertmsg div from the form response page. data: dataString, dataType: "html", success: function(data) { var response = $(data).find('#alertmsg').html(); $('#basic').hide().html(response).fadeIn(1500); }