Toggle Effects in jQuery — a practical guide to jQuery toggle effects with clear examples you can reuse in real projects.
jQuery Tutorial Series (33/101). Prefer one article? Read the complete jQuery tutorial.
Short description
Pass boolean to force show/hide state when needed.
Toggle
$('#box').toggle(true); // show
$('#box').fadeToggle();
$('#box').slideToggle();