I have 2 classes: the helperopen and the helper. I’m writing a toggle that slides the helper div open or closed depending on its visibility. For the moment, it does the slideDown but it’s not sliding up because the visibility condition test isn’t working.
This is what I have so far:
$('.helperopen').click(function () {
if( $('.helper').is('visible') == true )
{ $('.helper').slideUp(); }
else {
$('.helper').slideDown();
}
});
Any suggestions are welcome.
Thanks.
I believe it should be: