Why Web Development Institute?

Web Development Institute is the premier institute in Delhi-NCR offering wide range of web design and web development courses. All our courses are designed by experts and in consultation with students from the advanced regions of the web world.

Read more

Our Web Development Faculty

Our Web Development Courses are known for its professional excellence. Our highly qualified & experienced faculty offers intensified practical training to the students in the field of web development. They also render free career counseling.

Read more

Contact Web Development Institute

Want to talk to our career advisor!! Feel free to contact on any of the following numbers:

Ring us at:   +91 9911-78-23-50
                      +91 9811-81-81-22

jQuery

How to use jQuery.ajax() api with PHP?

jquery.ajax api use

AJAX, stands for Asynchronous JavaScript and XML. It's just a way to have the client requested data from the server without having to reload the entire page.

jQuery has a number of built-in AJAX functions and $.ajax() or jQuery.ajax() is one of them.

Most of the time, we'll use one or two of them, but there is one method that rules them all. It's the generic version of the call and it's simply called $.ajax().

$.ajax() is quite powerful ajax function because it enables us to pass parameters too to the PHP file to get the filtered result.

For Example:
HTML Code:
Copy the following code and paste in your .html file.

<button id="homeBtn">HOME</button>
<button id="aboutBtn">ABOUT US</button>
<button id="coursesBtn">COURSES</button>
<span id='loadc'></span>

Paste the following JavaScript link in the head of your .html file.

Subscribe to RSS - jQuery