i have a validation.js file
var name = $(\"#name\"); $.ajax({ type: \"get\", url: \"test.jsp\", data: \"n
msg appears to be a document object, rather than a string containing the appropriate name. It seems to me that you want $('#response').text($(msg).find('h1').text());
msg
$('#response').text($(msg).find('h1').text());