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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:18:42+00:00 2026-06-01T03:18:42+00:00

I have several forms on one page which are submitted using ajaxForm and show

  • 0

I have several forms on one page which are submitted using ajaxForm and show upload progress. Each form has the same class ‘.input_form’, a unique id, and a hidden input field with name and class of ‘category’ with a unique value.
Here is the original example: http://jquery.malsup.com/form/progress.html

    var bar = $('.bar');
var percent = $('.percent');
var status = $('#status');

$('.input_form').ajaxForm({
    beforeSend: function() {
        status.empty();
        var percentVal = '0%';
        bar.width(percentVal)
        percent.html(percentVal);
    },
    uploadProgress: function(event, position, total, percentComplete) {
        var percentVal = percentComplete + '%';
        bar.width(percentVal)
        percent.html(percentVal);
    },
    complete: function(xhr) {
        status.html(xhr.responseText);
        $('#activity_feed_load').load(querybuild());
        $('.wall_cat_selected').removeClass('wall_cat_selected');
        $('.input_form, .arrow').hide();
        var percentVal = '0%';
        bar.width(percentVal)
        percent.html(percentVal);
        $('.input_form').resetForm();
    }
});     

In the complete function, I’d like to retrieve the id of the form submitted or the value of the hidden field in the submitted form. I tried the following which didn’t work.

var value = $('.input_form .category').fieldValue(); alert('The category is: ' + value[0]); 

Basically, I’m not sure how to retrive ($this) for the form submitted.

Thanks for your help!

Ok, I just found out how to do this from a related SO question here:

how to use $(this) in jquery ajaxform plugin

Basically, I just needed to add the following to my ajaxForm function:

success: function(html, status, xhr, myForm) {   
        alert(myForm.attr('id'));

    }

Hope this helps someone else.

  • 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-01T03:18:43+00:00Added an answer on June 1, 2026 at 3:18 am

    Ok, I just found out how to do this from a related SO question here:

    how to use $(this) in jquery ajaxform plugin

    Basically, I just needed to add the following to my ajaxForm function:

    success: function(html, status, xhr, myForm) {   
            alert(myForm.attr('id'));
    
        }
    

    Hope this helps someone else.

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

Sidebar

Related Questions

I have a page that has several ajax submission forms. Each form has a
I have several forms inside DIVS on my page. I have one form which
I have a page that contains several forms, by submitting each one of them,
I have a two forms on a page. The first one has several quantity
I have a page which lists several messages, and each of these messages has
I will have a web-application which will use a few complex forms. One form
I have two forms on one page: a results form and a search form.
I have a page with several forms. I am trying to submit one of
I have one big JSF page containing nearly 1000 lines using normal JSF forms
I have a page with several check-boxes in a form, which when selected, filter

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.