December 29th, 2013, 10:45 AM
Toggle then fadeOut
I want that function to make my div toggle(showup) then second click it FadesOut. I dont want it to slide back. What i do
<div id="ans1" style="display:none;">Yes, Its a OOP language but in a different Style ! </div>
December 29th, 2013, 07:28 PM
Since you do not want the slide effect; you may not want to use the .toggle() API; but instead..., you may want use the .fadeIn() & .fadeOut() APIs. Those two APIs should give you the effect your looking for.