Current File : /home/inlingua/www/bestbuyind/wp-content/plugins/themehunk-customizer/themehunk/js/customizer.js |
jQuery(document).ready(function() {
/* === Checkbox Multiple Control === */
if (jQuery('.customize-control-checkbox-multiple').length) {
jQuery( '.customize-control-checkbox-multiple input[type="checkbox"]' ).on(
'change',
function() {
// alert('');
checkbox_values = jQuery( this ).parents( '.customize-control' ).find( 'input[type="checkbox"]:checked' ).map(
function() {
return this.value;
}
).get().join( ',' );
jQuery( this ).parents( '.customize-control' ).find( 'input[type="hidden"]' ).val( checkbox_values ).trigger( 'change' );
}
);
}
});