jQuery Toggle question
jQuery Toggle question
Out of context: Reply #6
- Started
- Last post
- 7 Responses
- welded0
This should do it but I didn't test.
$('#toggle').toggle(
function(){
$('#element').stop().animate({ height : '100%' }, 400);
},
function(){
$('#element').stop().animate({ height : '50%' }, 400);
}
);