HEX
Server: Apache
System: Linux host17.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User: shrsglobal (7178)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //home/shrsglobal/www/wp-content/plugins/ultimate-elementor/admin/bsf-core/assets/js/switch.js
jQuery(document).ready(function(){
	var switch_btn = jQuery(".bsf-switch-btn");
	jQuery(document).on('click', '.bsf-switch-btn', function(e){
		var id = jQuery(this).data('id');
		var value = jQuery(this).parents(".switch-wrapper").find("#"+id).val();

		if( value == 1 || value == '1' ) {
			jQuery(this).parents(".switch-wrapper").find("#"+id).attr('value','0');
		} else {
			jQuery(this).parents(".switch-wrapper").find("#"+id).attr('value','1');
		}
		
		jQuery(this).parents(".switch-wrapper").find(".bsf-switch-input").trigger('change');
	
	});
});