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.
Based on United States, Jacob Frazier is a skilled JavaScript developer with over 8 years of experience. He is passionate about change and trying new things, both professionally and personally. He loves startups and is extremely proactive.
We've gotten so used to seeing men streetwear joggers, ripped jeans, and sleeveless shirts. Hair…
When it comes to festivals, the options for wedding jewellery are endless. You can go…
Whether it concerns your home or an office building, the state of a property’s windows…
You know that running an environmentally sustainable business is the right thing to do. But…
If you are in a financial crisis , or need to start a new business…
To realize the strategic advantage from the fleet management system (FMS) and differentiate the business…