simple toggle problem
- by meo
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?