Answers for "jquery select clear items"

1

jquery clear select 2

$('select2element').val(null).trigger("change")
Posted by: Guest on April-12-2021
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
-1

how to clear all the dropdown elements in jquery

$("#GroupName").empty();
Posted by: Guest on May-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language