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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:06:31+00:00 2026-06-04T07:06:31+00:00

i have an almost simular problem as posted before. My first problem has been

  • 0

i have an almost simular problem as posted before.
My first problem has been solved, but now i am trying for 2 hours to solve the next one.

After confirming, my form has to be submitted.
I have a long list of forms, and wit a class forced to a jquery confirmation message.
I can get the name of the used form and data fromthat form (solution provided by one of you!).

The name or id of the form to be sent is stored in a variable. I have tried both: name an id of the form, both dont work in my code?

<script type="text/javascript"> 
$(".confirm_submit").click( function(){ 
var confirmteamnaam = $(this).closest("form").find("input[name='teamnaam']").val();
var frmnaam = $(this).closest('form').attr('id');
jConfirm( confirmteamnaam  + frmnaam, function(r) {
    if(r == true)
    {
        $(frmnaam).submit(); // this doe not work??
        return true;
    }
    else
        return false;
});
return false;

});

In the confirmation text the names are displayed correctly.
Tried it with id and name of the form, both dont submit?

many thanks in advance for any solution!!

  • 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-04T07:06:32+00:00Added an answer on June 4, 2026 at 7:06 am

    You need to make your form selector an id selector:

    $('#' + frmnaam).submit();
    

    Edit: you have some excessive querying and crawling going on. Here’s a little bit of a refactor that will cut down on some of that:

    $(".confirm_submit").click(function() {
        var $form = $(this).closest("form"),
            confirmteamnaam = $form.find("input[name='teamnaam']").val(),
            frmnaam = $form.attr("id");
    
        jConfirm(confirmteamnaam + frmnaam, function(r) {
            if (!r) return false;
            $form.submit();
            return true;
        });
    
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make my own user control and have almost finished it,
I have tried almost all the solutions from SO but no success :(. I
I know that this is very common problem and I have gone through almost
Ok, I know similar questions have been asked, but my groveling through Google searches
There are many similar questions and I almost have the solution but I have
my flash-game is almost finished but there is a (big?) problem: At its current
I have almost 800 MB and over 31,000 files in hundreds of subfolders at
I have almost created a website that works in all major browsers flawlessly. Yesterday,
I admit that I have almost none experience of unittesting. I did a try
I have two almost identical Beans. Bean Item contains a unique identifier (primary key),

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.