Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7734253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:12:14+00:00 2026-06-01T07:12:14+00:00

I would like it that when the user clicks out of the #email-form div,

  • 0

I would like it that when the user clicks out of the #email-form div, it is hidden and #stamp is displayed again. I am trying to do this with an overlay div, but it’s not working..

            jQuery('#email-form').hide();

        jQuery('#stamp').click(function()  {
            jQuery(this).hide();    
            jQuery('#email-form').show();
            jQuery(

        });

        jQuery('.overlay').click(function() {
                jQuery('#email-form').hide();
                jQuery('#stamp').show();
        });

———————————- HTML ——————————

 <div class="overlay" style="width:100%; height:100%;"></div>
 <div id="stamp"><img src="email_postmark.png"/></div>
 <div id="email-form">
    <form id="signup" action="<?=$_SERVER['PHP_SELF']; ?>" method="get">
         <span id="response">
     <?php require ('store-address.php'); if($_GET['submit']){ echo storeAddress(); } ?>
     </span>
    <input type="text" name="email" id="email" placeholder="TYPE EMAIL & PRESS ENTER"/>
    </form>
    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:12:16+00:00Added an answer on June 1, 2026 at 7:12 am

    Try it like this: http://jsfiddle.net/awEGq/1/

    The position:fixed makes sure that it always fills up the entire background, even if you have scrollbars. If you use position:absolute, you can scroll past the overlay.

    Because of the display:fixed, the overlay is placed on top of the rest of the page. To prevent this, I placed it further back with the z-index.

    The background-color is just for show, to show where the overlay is. You can remove it in your live implementation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Imagine a user that would like to put a form on their website that
I’m developing an application dedicated to generate statistical reports, I would like that user
I have a photo gallery I would like that every time a user does
I would like to track the link that a user followed to reach my
I would like to remove/uninstall directX End-User that I downloaded and installed it from
I would like to have a text field that a user can enter a
I would like to know the paths of certain files that a user is
We have a customer that would like to modify application user messages that we
I would like to have a checkbox preference that takes the user to a
I have a standard html form that uses a background image. I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.