I wish to accomplish a fairly simple task (I hope!)
I got two div tags and one anchor tags, like this:
<a href="javascript:void(0);">forgot password?</a>
<div id="login-form"></div>
<div id="recover-password" style="display:none;"></div>
I wish use the anchor tag to toggle between the two div tags, hide the one and show the other and vice versa.
How can this be done the best way?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…