How To Use Ajax In Jquery?



How To Use Ajax In Jquery?..

Answer / Amit Francis

To use AJAX in jQuery, you can utilize the `$.ajax()` function. Here's an example:nn```javascriptn$.ajax({n url: 'your_url',n type: 'GET' or 'POST',n dataType: 'json' or 'html' or 'text',n success: function(data) {n // handle the responsen },n error: function(error) {n // handle the errorn }n});n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Which are the fastest selectors in jquery? : jquery mobile

1 Answers  


Can you write a jquery code to select all links inside the paragraph?

1 Answers  


Can we use jQuery to make ajax request?

2 Answers  


What is method chaining in jquery?

1 Answers  


Why do we use jQuery?

1 Answers  


Explain the use of the $.fn.bind and $.fn.trigger.

1 Answers  


Explain the difference between size and length of jquery?

1 Answers  


How to use css() in jquery?

1 Answers  


Difference between prop() and attr()? : jQuery Mobile

1 Answers  


Why should I use jquery?

1 Answers  


What is finish method in jQuery?

1 Answers  


Explain .delegate()? : jquery mobile

1 Answers  


Categories