woocommerce/assets/js/frontend/chosen-frontend.js

11 lines
266 B
JavaScript
Raw Normal View History

jQuery(function($) {
// Frontend Chosen selects
$("select.country_select, select.state_select").chosen( { search_contains: true } );
$('body').bind('country_to_state_changed', function(){
$("select.state_select").chosen().trigger("chosen:updated");
});
});