The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery/WordPress Help Re: jQuery/WordPress Help


Just so this question doesn’t stay unsolved, the problem was that the click event is called with the clicked element as the parameter but I was overriding $. Removed the $ and it worked:
Copy code
$(‘.fr1’).click(function(){ $(‘frase1’).slideToggle(); });