i have a validation.js file
var name = $(\"#name\");
$.ajax({
type: \"get\",
url: \"test.jsp\",
data: \"n
looks like msg
isn't what you expect. I think you want msg.responseText
The reason you see [object Object] is because msg
is of type object and you pass it into .html
which will convert it to a string. And thus the html is filled with the string representation of object which in this case is "[object Object]"