Hello
My form is in a hidden div at the top of every page on my site. The visitor clicks a link to slideDown the form using jQuery. That works great.
I would then like them to be able to click to hide the confirmation message after successful submission. So I've put the following as my confirmation message:
Thanks <a id="form-close" href="#">Close Me!</a>
Then I have the following jQuery which should close the form when they click that link:
$("#form-close").click(function(){
$("#enews-form").slideUp();
return false;
});
(#enews-form is my div surrounding the form.) But it's not doing anything. I put an alert in there to test, and that doesn't show, so for some reason the click function is not firing. Looking at the source, there seems to be an iframe, so is this maybe what's causing the problem?
Is there a way of achieving what I'd like to do?
Many thanks
Simon