Answers for "jquery select2 remove all options"

3

remove all options from select jquery

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

jquery clear select 2

$('select2element').val(null).trigger("change")
Posted by: Guest on April-12-2021

Code answers related to "jquery select2 remove all options"

Code answers related to "Javascript"

Browse Popular Code Answers by Language