jQuery get() method sends an HTTP GET request to a page load data from the server back.
If any request with jQuery.get() method returns an error code then it will fail without notification unless the script has also called the global .ajaxError() method. In other side, as of jQuery 1.5, the .error() method of the jqXHR object is returned by jQuery.get() which is also available for error handling.
$("button").click(function(){
$.get("ajax.php", function(data, status){
console.log("Data: " + data + " " + "Status: " + status);
});
});
You can pass some additional parameters there:
$.get("ajax.php", { name:"John", age:"35" });
For jquery reference click here.
Battery coating is the process of applying uniform layers of active materials—such as cathode and…
Let’s face it. Tech buzzwords get thrown around a lot—especially when it comes to how…
In today’s digital world, the boundaries between technology, finance, and innovation are rapidly disappearing. Businesses…
Backyard gatherings like BBQs, family reunions, and garden parties are an exciting way to enjoy…
Marketers are always on the lookout for more effective ways to reach their target audiences.…
Does your phone control your mind more than you control your phone? Modern life exploits…