Hi, everyone. Any idea why this code won’t work as a shortcode?
(function(){
var $ = jQuery
$(‘.toggleFormButton’).click(function(){
$(‘.toggleFormButton’).removeClass(‘active’);
$(this).addClass(‘active’);
$(‘.hideShowContainer’).hide();
$(‘#’ + $(this).attr(‘hideShow’)).fadeIn(‘fast’);
});
})();
Thanks. I’m not that familiar with Javascript and jquery so I’m really stuck on this one.
Fixed
Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter
By using this website, you agree to our Terms Ok