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.
People usually stumble onto the 461 visa when they realise there’s no simple way to…
In today’s digital era, people look for convenience, transparency, and genuine rewards from their financial…
If you are planning to start a lighting business and looking for a supplier of…
If you are a copywriter or a content marketer, you will second my statement that…
Motorcycle accidents often lead to severe injuries because riders have minimal protection compared to drivers…
No business owner starts his or her business with the hope of making losses. Everyone…