How to Select Option Value In Ajax Success Call

This blog post all about How to Select Option Value In Ajax Success Call in Jquery. Its very simple and easy bit of code. here is the below example.



$(‘#id  option[value=”‘+par+'”]’).attr(“selected”, “selected”);

Step-1:

HTML for example:-

Step-2:



Example for get value in Ajax response -:

Hope it helps you…

Tags: , ,