My question is that two functions are passed in to switch why .. and outside of another function there is something that also confuses plz tell me
$('#login a').toggle(function() {
$(this)
.addClass('active')
.next('form')
.animate({'height':'show'}, {
duration:'slow',
easing: 'easeOutBounce'
});
}, function() {
$(this)
.removeClass('active')
.next('form')
.slideUp();
});
$('#login form :submit').click(function() {
$(this)
.parent()
.prev('a')
.click();
});
source
share