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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:02:24+00:00 2026-06-04T22:02:24+00:00

I have made a form. I want to open a inline popup on submit

  • 0

I have made a form. I want to open a inline popup on submit and make a text box in the popup that is compulsory to be filled and then in the popup when the user submits a form, the form then gets submitted via popup and page gets refreshed.

I am not able to show alert box in the popup and submit the form via popup.

<script type="text/javascript">
$(document).ready(function() {

  $("#submit").click(function(){
    $(".variousz").trigger('click');

  });

$(".variousz").fancybox({
    maxWidth    : 800,
    maxHeight   : 600,
    fitToView   : false,
    width       : '70%',
    height      : '70%',
    autoSize    : false,
    closeClick  : false,
    openEffect  : 'none',
    closeEffect : 'none',
    afterClose: function(){
         $('#formsubmit').submit();
        }

});
$("form").submit(function() {
 if ($('#accept').val() == 'ACCEPT'){ } else { $("span").text("Query is Not valid!").show().fadeOut(1000);
 return false; }
});
});
</script>
<body>

    <div id="inline" style="display:none;width:500px;">
        <h2>Lorem ipsum dolor sit amet</h2>     
        <p>
            <input type="text" name="accept" id="accept" value=""><span></span>

        </p>
        <p>
            Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        </p>
    </div>  
    <div class="tab_container">
            <a style="display:none;" class="variousz" href="#inline">Inline</a>

            <form method="GET" action="test.html" id="formsubmit" onsubmit="test.html" >
            <input type="text" name="aaa">
            <input type="button" id="submit" value="submit"> 
            </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-04T22:02:25+00:00Added an answer on June 4, 2026 at 10:02 pm

    There are several popup plugins over here.
    http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/
    And implement them with your form.

    This old example is a good one too
    And all the colorbox,fancybox Other light box alternatives
    like these might be handful.

    And there is an other stack overflow question exactly same as this.
    Thank you

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

Sidebar

Related Questions

i have a form (made through codeigniter) that i want to submit with ajax
In my iOS application I have made a form that should submit data into
I have made a form that accepts query and executes it through php. I
I have started using jQuery and rails. I have made a simple form that
I have a dynamic form that adds users to the site, made so you
I have made a simple form with one textField and command, I want to
I have made a user signup form in asp.net. I want to check the
I am new to .NET, I have made a small app. I want that
I have made a form with a Select All checkbox that selects all the
I have made a Base Form which is inherited by most Forms in the

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.