I have the following code, which fades in HTML via a .load
into a .pop-up
modal.
$('.about').click(function(){
$('.pop-up').load('about.php', function(){
$(this).fadeIn();
});
However, I need a second click to make the .about
fade out. I understand certain toggle functions are now deprecated. Is there a current method I could use? I have a couple of these functions which will need toggling throughout the code.
Any help would be great.