simple toggle problem
Posted
by meo
on Stack Overflow
See other posts from Stack Overflow
or by meo
Published on 2010-04-30T16:53:12Z
Indexed on
2010/04/30
16:57 UTC
Read the original article
Hit count: 262
jQuery
I'm just programming a little function that toggles a content by fading it in and out.
this.advancedSearch = function(fieldset, triggerBtn){
fieldset.hide()
triggerBtn.click(function(){
fieldset.toggle(function(){ $(this).stop(false, true).fadeIn(300) }, function(){ $(this).stop(false, true).fadeIn(300) })
})
}
if just I use toggle()
it works, but when i insert the two functions nothing happens and no error is thrown. Is there something i have done wrong?
© Stack Overflow or respective owner