jQuery Toggle question
jQuery Toggle question
Out of context: Reply #2
- Started
- Last post
- 7 Responses
- Stugoo0
i think what you have there is a little overkill
you could do (remove spaces before '.')
$('#element').css({ height : '50%' });
then when you click toggle do :
$('#element') .stop() .animate({ height : '100%; }, 400);
revert back:
$('#element') .stop() .animate({ height : '50%; }, 400);