Saved Bookmarks
| 1. |
How To Select Combobox Selected Value And Text Using Jquery? |
|
Answer» var StateID = $("#StateCbx").VAL(); // Or you can USE it $("#iStateID").val(); var StateName = $("#StateCbx option:selected").text(); alert("Selected COMBOBOX text is= " + StateName + " and value is= " + StateID); var StateID = $("#StateCbx").val(); // Or you can use it $("#iStateID").val(); var StateName = $("#StateCbx option:selected").text(); alert("Selected combobox text is= " + StateName + " and value is= " + StateID); |
|