Answers for "jquery select remove all options"

3

remove all options from select jquery

$('#mySelect')
    .empty()
Posted by: Guest on March-18-2020
5

jquery remove option from select by value

$("#FIELDID option[value='X']").remove();
Posted by: Guest on February-27-2020
1

jquery select clear options

$('#mySelect')
    .find('option')
    .remove()
    .end()
    .append('<option value="whatever">text</option>')
    .val('whatever')
;
Posted by: Guest on April-15-2021

Code answers related to "jquery select remove all options"

Code answers related to "Javascript"

Browse Popular Code Answers by Language