How to get the server response from an ajax request using jquery?



How to get the server response from an ajax request using jquery?..

Answer / Shiv Shambhu Kumar

To retrieve the server response from an AJAX request in jQuery, you can access it within the success callback function. For example: $.ajax({... success: function(data) { console.log(data); } });

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Explain the difference between .empty() and .remove() ?

1 Answers  


What does dollar sign ($) means in jQuery?

1 Answers  


Explain width() vs css(‘width’)?

1 Answers  


What are selectors in jquery? Explain

1 Answers  


How can jquery library be added to pages? Write a basic jquery code?

1 Answers  


What are the methods used to provide effects in jquery?

1 Answers  


Jquery can be used in what scenarios?

1 Answers  


What are the four parameters used for jQuery Ajax method?

1 Answers  


Which sign is used as a shortcut for jQuery?

1 Answers  


Which version of jquery file should be used?

1 Answers  


Explain chaining in jquery? : jquery mobile

1 Answers  


What is difference between $(this) and ‘this’ in jquery?

1 Answers  


Categories