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

  • Home
  • SEARCH
  • 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 8695289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:59:39+00:00 2026-06-13T00:59:39+00:00

I am trying to rebind a click event to post a form and ajax

  • 0

I am trying to rebind a click event to post a form and ajax the html

$('.btnSave').addClass('yui3-button').click(function() {
    var $this =  $(this);
    var id = $(this).parent().attr('id');

    $.post(
        "MTrades/save", 
        $.param({ mycase: 1 }) + '&' + $(this).parent().parent().serialize(),
        function(data) {
            alert("page - " + data);
            $this.parent().fadeOut("fast").load(
                "MTrades/index/"+id+"/options", 
                function() {
                    //rebind the click event
                    BindClick();
                }).fadeIn("fast");
            });
            return false;
        });

The form parameters send works for the first time but not the second time
(after I have saved and reloaded the html)
the .serialize() returns empty.

html (shorten):

<form id="Form2">
    <button>
    <div>
        <button>save
        <form>
            <table>
            </table>
        </form>
    </div>
</form>

thanks

  • 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-13T00:59:40+00:00Added an answer on June 13, 2026 at 12:59 am

    I have replaced the outer form with <div>
    and I send the inner <form> with $(this).parent().find('form').serialize()
    instead of $(this).parent().parent().serialize()

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

Sidebar

Related Questions

i got this error while trying to rebind a grid: ( Parent page (
Is it possible to bind/rebind a RadListView's datasource using Ajax? What I'm trying to
I am trying to rebind the keydown event on focusout. Not really sure how
I am trying to rebind the li tags by removing it and again rebinding
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to figure out how I can do this properly. The print_r looks like
Details: I'm basically trying to implement the functionality of the example here ( http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx
I'm trying to bind some list item links in jquery mobile to a click
Im trying to make an app, that would remind me of an event at
Sorry if this post appears to be long winded. I have a parent repeater

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.