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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:27:37+00:00 2026-05-31T02:27:37+00:00

I found Malsup’s JQuery Form plugin quite handy in ajaxyfying my forms. However I

  • 0

I found Malsup’s JQuery Form plugin quite handy in ajaxyfying my forms. However I am unable to refer to the target element on which the submit event occured in success and error callbacks. The this keyword in the refers to the ajaxForm object and not the DOM element.

I have lots of small forms on my page. Like accept and reject buttons against requests and I want to submit those forms using ajax. When it gets completed I want to remove that form from DOM and display a message “Request Successful!” or so. But I am unable to locate the target which actually submitted the form.

I know I can pass a context option which will be the context of all callbacks, in that too I am unable to make out how to refer to the element on which the submit event occured?

Thanks in advance.

  • 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-31T02:27:38+00:00Added an answer on May 31, 2026 at 2:27 am

    Got it.

    I can pass a beforeSubmit function in which I set the context to the target.

    $('form').ajaxForm({
        beforeSubmit: function(arr, $form, options){
            options.context = $form;
        }
        //Rest of the options and callbacks
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a good jquery plugin for form validation. I have found
I am using jQuery Form Plugin http://jquery.malsup.com/form/ to submit my form. Here is the
I'm using the jQuery plugin corner: http://www.malsup.com/jquery/corner/ Its almost doing a great job making
Found this rather strange bug in IE8; element.style.top is limited to 1342177 pixels. Even
Found this question that explained a way to communicate between layers. However there is
Found out about this cool jQuery countdown which is initialized as such: <script type="text/javascript">
I'm looking for a jQuery plugin that can zoom a thumbnail and also display
I am trying to upload and submit through AJAX a form and I found
Found this great article on using jquery for image swapping: http://jquery-howto.blogspot.com/2009/05/replacing-images-at-time-intervals.html How do you
Found table http://phrogz.net/programmingruby/language.html#table_18.4 but unable to find description for |= How the |= assignment

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.