jquery select clear options
$('select2element').val(null).trigger("change")
5
1
$('#mySelect')
.find('option')
.remove()
.end()
.append('<option value="whatever">text</option>')
.val('whatever')
;
Thank you!
1
0
Are there any code examples left?
New code examples in category Javascript