PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Using jQuery to close confirmation message on click

  1. LumpySimon


    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:

    		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

    Posted 11 years ago on Thursday October 6, 2011 | Permalink
  2. Hi Simon,

    If possible, please share a link to where you have this implemented. I'll take a look and give you some feedback. :)

    Posted 11 years ago on Monday October 10, 2011 | Permalink
  3. LumpySimon

    Hi David

    Thanks very much, but I've now got this working, not too sure why it didn't before.


    Posted 11 years ago on Thursday October 13, 2011 | Permalink
  4. Glad you were able to get this resolved. :)

    Posted 11 years ago on Thursday October 13, 2011 | Permalink

This topic has been resolved and has been closed to new replies.