Open and Close jQuery Overlay with Same Element -
Open and Close jQuery Overlay with Same Element -
i'm using jquery tools overlay fade in overlay on website.
here's overlay's html:
<div id="contact">..div content..</div> here's element i'm using open overlay:
<span rel="#contact"></span> here's jquery i'm using overlay:
$(document).ready(function() {$("span[rel]").overlay(); } ); when click span rel="#contact", div id="contact" fades in. want know how click same span rel="#contact" 1 time again close element.
look @ .toggle()
jquery overlay toggle switch-statement
Comments
Post a Comment