How do I reset a jquery-chosen select option with jQuery?-open source projects harvesthq/chosen
I have tried numerous things and nothing seems to be working.
I am using jQuery and Chosen plugin.
Methods I have tried:
var select = jQuery('#autoship_option');
select.val(jQuery('options:first', select).val());
jQuery('#autoship_option').val('');
jQuery('#autoship_option').text('');
jQuery('#autoship_option').empty('');
jQuery("#autoship_option option[value='']").attr('selected', true);
It always shows the Active Autoship option once it has been selected. I can’t seem to get it to clear the selection.
Here is the select box:
Active Autoship
Anyone familiar with Chosen and being able to clear a select box with one option? (It will have more options in the future.