Needless to say about jquery. You can read this article. Article And jquery is a JS framework.
Ajax is certainly required for projects.
If jquery's Ajax is used, jquery needs to be introduced to the JSP page.
When you find that jquery Ajax is invalid, use the fire bug to debug it. Then, you will find that the prompt "$" is invalid. Why is this prompt? The reason is that there is a problem with the jquery. js path.
So when you encounter such problems, the first thing you need to do is to check whether there is a problem with your jquery path.
Jquery path:CopyCodeThe Code is as follows:/scripts/jquery-1.7.min.js "Language =" JavaScript "type =" text/JavaScript "> </SCRIPT>
Jqueryajaxdemo:Copy codeThe Code is as follows: $. Ajax ({
Type: "Post", <! -- Submit Method -->
URL: "customer/validatecustomername. do? ", <! -- Submitted to which URL -->
Data: "customername =" + customernamevalue, <! -- Parameters to be propagated during submission -->
Datatype: "html", <span style = "white-space: pre"> </span> <! -- Return Value Type -->
Success: function (returndata) <span style = "white-space: pre"> </span> <! -- Data returned after success and the function executed after success -->
{
}
}
);