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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:06:54+00:00 2026-05-15T02:06:54+00:00

I have this problem when I do an ajaxrequest that I lose my onchange

  • 0

I have this problem when I do an ajaxrequest that I lose my onchange events from
my inputfields. Well I have done this function that would reinit the events to those inputs
but Im not sure if that is the best way to do it..

  • 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-15T02:06:54+00:00Added an answer on May 15, 2026 at 2:06 am

    The problem sounds as if you are replacing the DOM elements after the AJAX load – this also ‘overwrites’ their event handlers as they are bound to the DOM objects you replace. You have one of 3 solutions:

    1) Don’t replace any form DOM elements you have event handlers bound to.

    2) Re-bind the event handlers after you have replace the DOM elements.

    3) Use jQuery’s .live() method of method binding – this means that it will not only bind the events to the elements matched by your selector, but it will continue to do so for new elements created afterward which match the selector too. I would expect this to have some sort of performance hit in the browser however, and depending on the selector used it could have undesirable effects.

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

Sidebar

Related Questions

I have problem with synchronizing results of function I get with AJAX with that
i have this jquery voting script, everything is working fine, it just that the
I have a very simple class using HttpListener to receive an HTTP POST from
I have a website where people can place bids on products. So the first
Often I add helper functions to my PHP that return complex HTML. For example,
http://jqueryui.com/demos/accordion/#event-changestart I'm trying to have an JQuery ajax request get some data and populate
I have a form with different groups of checks boxes and trying to pass
Suppose I'm entertaining a business model that offers free access to my propritary data
I'm not quite sure how to phrase this question correctly, so I'll start with
I've looked around on SO on this topic like this topic here . Also

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.