InterviewSolution
Saved Bookmarks
| 1. |
Get The Value Of Selected Option In Jquery? |
|
Answer» ANSWER : <select id="sel"> <option VALUE="1">Hi</option> <option value="2">Hello</option> <option value="3">Helloooooo</option> <option value="4">ok</option> <option value="5">Okey</option> </select> want to get the value of selected option, then USE $("select#sel").val();or text of selected box, then use $("#seloption:selected").text();want to get the value of selected option, then use or text of selected box, then use |
|