PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 4.11
Smart Grid-Layout Design for Contact Form 7 v4.11
4.18.0 4.17.0 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 4.0.0 4.0.1 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10 4.11 4.12 4.13 4.14 All 119 releases
cf7-grid-layout / admin / js / cf7sg-dynamic-select.js

cf7sg-dynamic-select.js in Smart Grid-Layout Design for Contact Form 7 4.11, at admin/js/cf7sg-dynamic-select.js

20 lines 538 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($){
2 let $tags = $('#select2-tags'), $select2 = $('#dynamic_select-select2');
3 $tags.change(function(e){
4 if($tags.is(':checked')){
5 $select2.val('select2 tags').change();
6 }
7 });
8 $('.list-style.dynamic_select').change(function(e){
9 if($select2.is(':checked')){
10 $tags.prop('disabled', false);
11 $tags.closest('span').show();
12 }else{
13 $tags.prop('checked', false);
14 $tags.prop('disabled', true);
15 $tags.closest('span').hide();
16 $select2.val('select2');
17 }
18 });
19 })(jQuery);
20