My attempt @ blogging
My attempt @ blogging
Friday, 22 July 2011
Getting selected text from DropDownList using jQuery
Try
$("#IDofYOurDropDownList option:selected").text();
$("#IDofYOurDropDownList").text() will return you all the "text" values of the dropdown list.
BUT
$("#IDofYOurDropDownList").val();
will give you the selected value.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment