Saved Bookmarks
| 1. |
How To Get The Selected Value Of Dropdown In Jquery? |
|
Answer» Below is the sample code to bind to dropdown (selected) – <select ID="myControlID"> <option value="1">AA</option> <option value="2">BB</option> <option value="3">CC</option> <option value="4">DD</option> </select> Get the selected value – $("#myControlID option:selected").text(); Below is the sample code to bind to dropdown (selected) – <select id="myControlID"> <option value="1">AA</option> <option value="2">BB</option> <option value="3">CC</option> <option value="4">DD</option> </select> Get the selected value – $("#myControlID option:selected").text(); |
|