$(function(){
// the next line works fine
$('#show-forgetForm').hide();
$('#forgetForm').click(function() {
// I can't see the form when I click on the link
$('#show-forgetForm').show();
return false;
});
})
HTML:
<a href="#forgetForm" title="show the form">show</a>
<form id="show-forgetForm">
[...]
</form>
You need to change
to
That is because
$('#forgetForm')tries to find an element with itsid, and not itshref, attribute beingforgetform