Bind Click Event To Anchor Tag Not Working
When I load the page the div #forgot_login blindes down even though I did NOT click the anchor link. Also, clicking the anchor link does not toggle it up and down. The event binding is not working. Thanks for the help.
HTML
-
<a href="#" id="forgot_login_link" title="Show">Show</a>
jQuery Event
-
$("#forgot_login_link").click(show_hide($("#forgot_login")));
Here is the show/hide code:
-
function show_hide(p_Element) {
p_Element.toggle('blind', { direction: "vertical" }, 500);
}