Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery select option by text

$("#myDropdown option:contains(Option 2)").attr('selected', 'selected');
Source by www.codespeedy.com #
 
PREVIOUS NEXT
Tagged: #jquery #select #option #text
ADD COMMENT
Topic
Name
5+8 =