Question and answer is powered by AnsPress.io
I want to clear all option data when I append the new option data in my select field. Help me, please.
If you use select2 dropdown then use this tricks.
$(‘#your_select_input’).val(null).trigger(‘change’);
OR
$(‘#your_select_input”).select2(‘data’, null);