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 7587241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:37:27+00:00 2026-05-30T19:37:27+00:00

I am loading a registration form from another page. The load works great. I

  • 0

I am loading a registration form from another page. The load works great. I want to next when someone clicks close to move the box up and fade out the fog. However I cant seem to get it to work even the return false which should stop it from going to /# does not work. Any ideas?

Jquery

    $('.signUpLink').click(function(data) {

        var url = $(this).attr('href');

        $( '#wrap' ).append(
            $( '<section>' ).load( url , function () {
                $('.fog').fadeIn('10000');
                $('.signUpBox').animate({top: '200px'}, 400);
                })
        );

        data.preventDefault();

    });

    $('.signUpBoxClose').click(function() {
        $('.fog').fadeOut('10000');
        $('.signUpBox').animate({top: '-200px'}, 400);
        return false;       
    });

HTML

<div class="signUpBox">
    <form action="http://localhost:8888/splooth/index.php/register" method="post" accept-charset="utf-8">
        <input type="text" name="username" value="" placeholder="Username"  />
        <input type="text" name="Email" value="" placeholder="Email Address"  />
        <input type="password" name="username" value="" placeholder="Password"  />
        <input type="submit" name="submit" value="Login"  />
    </form>
    <a class="signUpBoxClose" href="#">Close</a>

</div>
<div class="fog"></div>

CSS

.signUpBox {
    position: absolute;
    top: -1000px;
    left:50%;
    margin-left:-480px;
    width: 960px;
    border: 2px solid black;
    z-index: 25;
}

.signUpBoxClose {
    position: absolute;
    top: 0;
    right: 0;
}

.fog {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,.25);
    z-index: 24;
    display: none;
    top: 0;
    left: 0;
}
  • 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-05-30T19:37:29+00:00Added an answer on May 30, 2026 at 7:37 pm

    You are probably loading the close button dynamically, right? The .click() event isn’t attached to it, as it loads after the DOM does.

    You need to use this:

    $('body').on('click', '.signUpBoxClose', function() {
        $('.fog').fadeOut(10000);
        $('.signUpBox').animate({top: 200}, 400);
        return false;       
    });
    

    Or for older jQuery versions:

    $('.signUpBoxClose').live(function() {
        $('.fog').fadeOut(10000);
        $('.signUpBox').animate({top: -200}, 400);
        return false;       
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When loading a html page using JQuery load, I also need to call another
Loading multiple child forms from a loop into a MDI parent form. They are
When loading a page for the first time (!IsPostback), I am creating a button
Some loading routines in my program takes to long to complete. I want a
After loading a PHP template (using jQuery's load function), this simple script won't make
After loading dynamic content to a DIV, I'd like to add a Close option,
while loading getfptex(got it from CTAN) batch file ,when i'm extracting this batch file
New to python and django .i want to understand the code of django-registration module
When loading an image from the web I am getting a black screen. I
I am having a login screen where I want to move the textfield up

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.