i have a panel having slide toggle effect on click of a button along with this slide toggle i am also hiding one div on the click event what i want when the panel slide down that div should hide and when panel slide up the div reappear how to do this
Share
You could use callbacks and
.toggle(), say your<div>s looked like this for illsutration:You could do this:
You can give that a try here, or you could change them out if they’re meant to occupy the same area by
.slideToggle()on both, like this:You can give that a try here.