jQuery(document).ready(function ($) { $('#customize-control-aemon_theme_aboutus_textarea').on('click', function(){ console.log('click is working'); }); $(document).on('focusout', '.wpba-count', function(){ console.log($(this).val()); $(this).nextAll().remove(); el= $(this); var number = $(this).val(); for (var i = number; i > 0; i--) { $('
  • Team Member '+i+' Press return or enter to open this section

  • ').insertAfter(el); } // $('
  • Team Member 1 Press return or enter to open this section

  • ') }); }); $(document).on('click', '.myaccordion .accordion-section-title', function(){ $(this).parent().addClass('open').siblings().removeClass('open'); $(this).next('.accordion-section-content').css({'margin-top': '0px', 'height': '429px'}); $('.wp-full-overlay').addClass('section-open'); }); $(document).on('click', '.customize-section-back', function(e){ e.preventDefault(); $('.wp-full-overlay').removeClass('section-open'); }); $(document).on('keydown', '.customize-control input[type="text"]', function(){ $("#customize-header-actions input[type='submit']").removeAttr('disabled').val('Save & Publish'); }); }); (function($){ $(window).load(function(){ $('').insertBefore('#accordion-section-aemon_theme_team_section_1'); // console.log($('#accordion-section-aemon_theme_team_section_1').html()); }); }(jQuery));