Get selected text from drop-down list (select box) using jQuery

860

How can I get an ASP drop-down list selected text in jQuery, not using the selected value?

2Answer


0
$("#yourdropdownid option:selected").text();
  • answered 4 years ago
  • Sunny Solu

0

Try this:

$("#myselect :selected").text();

For an ASP.NET dropdown you can use the following selector:

$("[id*='MyDropDownId'] :selected")
  • answered 4 years ago
  • Sandy Hook

Your Answer

    Facebook Share        
       
  • asked 4 years ago
  • viewed 860 times
  • active 4 years ago

Hot Questions