Skip to main content
added 57 characters in body
Source Link

I saw this code in select2Select2 - Clearing Selections

$('#mySelect').val(null).trigger('change');

This code works well with jQuery even without Select2

I saw this code in select2 - Clearing Selections

$('#mySelect').val(null).trigger('change');

I saw this code in Select2 - Clearing Selections

$('#mySelect').val(null).trigger('change');

This code works well with jQuery even without Select2

I saw this code in select2 - Clearing Selections

$('#mySelect).val(null).trigger('change');
$('#mySelect').val(null).trigger('change');

I saw this code in select2 - Clearing Selections

$('#mySelect).val(null).trigger('change');

I saw this code in select2 - Clearing Selections

$('#mySelect').val(null).trigger('change');

I saw this code in select2 - https://select2.org/programmatic-control/add-select-clear-items#clearing-selectionsClearing Selections

$('#mySelect).val(null).trigger('change');

I saw this code in select2 https://select2.org/programmatic-control/add-select-clear-items#clearing-selections

$('#mySelect).val(null).trigger('change');

I saw this code in select2 - Clearing Selections

$('#mySelect).val(null).trigger('change');
Source Link
Loading