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

  • Home
  • SEARCH
  • 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 9287651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:43:42+00:00 2026-06-18T19:43:42+00:00

i have a jquery pop up plugin, when i submit the form it will

  • 0

i have a jquery pop up plugin, when i submit the form it will close automatically. but i need to set time limit for the pop up window.

HTML:

  <div class='popbox'>
<a class='open' href='#'>
  <img src='plus.png' style='width:14px;position:relative;'> Click Here!
</a>

<div class='collapse'>
  <div class='box'>
    <div class='arrow'></div>
    <div class='arrow-border'></div>

    <form action="" method="post" id="subForm">
      <div class="input">
        <input type="text" name="cm-name" id="name" placeholder="Name" />
      </div>
      <div class="input">
        <input type="text" name="cm-nklki-nklki" id="nklki-nklki" placeholder="Email" />
      </div>
      <div class="input">
        <textarea name="cm-f-tlhll" id="Message" placeholder="Comments"></textarea>
      </div>
      <input type="submit" value="Get In Touch" /> <a href="#" class="close">Cancel</a>
      <input type="button" name="closebutton" id="closebutton" value="closebutton" >
    </form>

  </div>
</div>

Jquery:

 (function () {
   $.fn.popbox = function (options) {
     var settings = $.extend({
       selector: this.selector,
       open: '.open',
       box: '.box',
       arrow: '.arrow',
       arrow_border: '.arrow-border',
       close: '.close'
     }, options);
     var methods = {
       open: function (event) {
         event.preventDefault();
         var pop = $(this);
         var box = $(this).parent().find(settings['box']);
         if (box.css('display') == 'block') {
           methods.delay(1500).close();
         } else {
           box.css({
             'display': 'block',
             'top': 10,
             'left': ((pop.parent().width() / 2) - box.width() / 2)
           });
         }
       },
       close: function () {
         $(settings['box']).fadeOut("fast");
       }
     };
     $(document).bind('keyup', function (event) {
       if (event.keyCode == 27) {
         methods.delay(1500).close();
       }
     });
     return this.each(function () {
       //$(this).css({'width': $(settings['box']).width()}); // Width needs to be set otherwise popbox will not move when window resized.
       $(settings['open'], this).bind('click', methods.open);
       $(settings['open'], this).parent().find(settings['close']).bind('click', function (event) {
         event.preventDefault();
         methods.close();
       });
     });
   }
 }).call(this);
  • 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-18T19:43:44+00:00Added an answer on June 18, 2026 at 7:43 pm

    increase the delay(1500) to a higher value. 1500 is in milliseconds, which means your current popup will close in 1.5 seconds.

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

Sidebar

Related Questions

I have a pop-up window in jQuery that fades in, and will fade out
I have jquery pop form to upload a file, after on submit (the page
I have a jquery pop-up window attached to a link. If the page is
Related to this question , I have set up some jquery to pop-up a
I have a jQuery Mobile pop-up box like so (see code below), and need
I have a jQuery pop-up dialog, and at the top there is a close
My goal is to have a jQuery datepicker pop up when the user clicks
I have jQuery draggable set up and working ok on a table row. Currently
I have jquery tabs on my website but on smaller screens the tabs wrap
Right now, I have a jQuery UI pop-up dialog that reads from an external

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.