HTML Select Value Example:-
$('select#ddlCategory').val("3");
Note:- Here I am selecting the
option which contains 3.
|
HTML Select Text Example:-
$("select#ddlCategory").find("option:contains('SharePoint
2010')").prop("selected", "selected");
Note:- Here I am selecting the
option which contains SharePoint 2010
|
Thursday, November 29, 2012
How to select a particular value or text with in a Dropdownlist using JQuery
Category:
Jquery Samples
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment