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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:52:44+00:00 2026-05-17T23:52:44+00:00

I am trying to create a dialog pop-up box with 2 forms inside of

  • 0

I am trying to create a dialog pop-up box with 2 forms inside of it. The pop-up works great, but inside of the dialog I have 2 forms, each with separate actions.

I am using the jQuery Form Plugin, to submit my form and show a response to #showResponse

The problem i’m having is whenever I click either of the forms it loads the first form in the #showResponse, and i’m not exactly sure why….

This is my Javascript Code

$(".formFill2").validate({
    submitHandler: function (form) {
        $(form).ajaxSubmit({
            target: "#submitResponse",
            success: function (responseText, statusText, xhr, form) {
                $("#submitResponse").show('slow');
                $('#submitResponse').delay(4000).fadeOut('slow');

            },
            error: function (responseText, statusText, xhr, form) {
                alert("Oops... Looks like there has been a problem.");
            }
        });
        return false;
    }
});   

And this is my HTML inside my Dialog Window.

<fieldset><legend>Email this PDF to</legend>
                  <form class="formFill2" name="emailPDF" id="emailPDF" action="classes/class.Post.php?a=notifyForm" method="post">
                    <label for="email1">Email 1</label>
                    <input name="email1" type="text" value="<?php echo $_SESSION['myEmail']; ?>"><br />

                    <input type="submit" value="Send Emails">
                  </form>    
                  </fieldset>

                  <fieldset><legend>Fax this PDF to</legend>
                  <form class="formFill2" name="faxPDF" id="faxPDF" action="classes/class.Post.php?a=faxFile" method="post">
                    <label for="faxNumber">Fax #</label>
                    <input name="faxNumber" type="text" ><br />

                    <input type="submit" value="Send Fax">
                  </form>    
                  </fieldset>

Any help would be appreciative.

  • 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-17T23:52:44+00:00Added an answer on May 17, 2026 at 11:52 pm

    I’m speculating a bit here, but it might be a bug in the form validator.

    It may be the case that the Validate plugin is using your original CSS selector (.formFill2) in order to get the parameter for the submitHandler function. If they’re using something like get(0), then it’ll always return the first DOM object discovered by .formFill2 — the first form.

    If you console.log the ‘form’ parameter that is passed into your submitHandler, do you get the right form?

    If it’s always giving you the first form, you might want to try something like the following:

    var submitHandler = function(form) {
        //Your submitHandler...
    }
    
    $('#emailPDF').validate(submitHandler : submitHandler);
    $('#faxPDF').validate(submitHandler : submitHandler);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a what's new pop-up dialog when users update (or, I
I'm trying to create a dialog window using the following CSS: #blackOverlay { display:
I am trying to create an open dialog (in Windows 7) where the user
I have a table that I am trying to dynamically delete rows from. Each
I'm trying to write a test suite for a compiler (LLVM) and it works
I am trying to create an overlay, similar to the one that jQuery UI
I'm trying to create a ServerSocket on a port below 1024. Obviously, this is
I'm trying to get an alert box to show up 5 seconds after my
I'm using Delphi (7-2010) and trying to figure out a good way to handle
I'm trying to use a template with GetOpenFileName without success. I've found very little

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.