Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery select clear options

$('#mySelect')
    .find('option')
    .remove()
    .end()
    .append('<option value="whatever">text</option>')
    .val('whatever')
;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #select #clear #options
ADD COMMENT
Topic
Name
2+7 =