![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/themes/dt-the7/inc/shortcodes/vc_extend/ |
!function($) { $('.wpb_el_type_dt_taxonomy .dt_taxonomy').click(function(e){ var $this = $(this), $input = $this.parents('.wpb_el_type_dt_taxonomy').find('.dt_taxonomy_field'), arr = $input.val().split(','); if ( $this.is(':checked') ) { arr.push($this.val()); var emptyKey = arr.indexOf(""); if ( emptyKey > -1 ) { arr.splice(emptyKey, 1); } } else { var foundKey = arr.indexOf($this.val()); if ( foundKey > -1 ) { arr.splice(foundKey, 1); } } $input.val(arr.join(',')); }); }(window.jQuery);