how to remove all option in select2 using jquery code example
Example 1: remove all options from select jquery
$('#mySelect')
.empty()
Example 2: jquery clear select 2
$('select2element').val(null).trigger("change")
$('#mySelect')
.empty()
$('select2element').val(null).trigger("change")