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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment