Ajax Call for Post and Get
Take an example where you have been given a simple input form where you have to post a username which sends to the database and it replies with the results.
This code will append the content of “content.html” to the #results element.
This code is the explanation for how to send POST Data and output the Result.!
Explanation with HTML File
Assume you have an HTML file like this.
This is the example script for getting the Username for GET Call.