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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:03:59+00:00 2026-06-08T02:03:59+00:00

I have this typical problem with select. First let me make it clear that

  • 0

I have this typical problem with select. First let me make it clear that I am running jQuery 1.3.2 which I know is pretty old but due to some reasons I cannot update it. My problem is with jQuery 1.3.2 and IE7. Now the problem is I have the below select box…

<select class="myclass">
    <option value="select">Select</option>
    <option value="sunday">Sunday</option>
    <option value="monday">Monday</option>
    <option value="tuesday">Tuesday</option>
    <option value="wednesday">Wednesday</option>
</select>

and the problem is that with my script this select is replaced with same select which is retrieved from an ajax call. But since its replaced the change event does not work on it anymore. I can use live() but that does not work in IE7 as of jQuery 1.3.2. I also cannot use deligate(), so is there any method by which i can achieve successive change events after the select has been replaced?

If not is there any way i can bind the .change() function to the same element after the ajax call?

Here’s my script…

$('.myclass').change(function(){
    //other code
    $.post(document.URL,data,function(){
        //other code
        //[[here on success I want to bind the same code again on my class so it will be called the next time]]
    });
});

Is rebinding the function an option here? I am looking for a solution besides adding livequery.

Link to Fiddle If you run this in IE9 it will work but not in IE7 and IE8

  • 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-08T02:04:01+00:00Added an answer on June 8, 2026 at 2:04 am

    You can replace the option‘s of select box instead of replacing itself.

    change event not supported by $.live():

    In jQuery 1.3.x only the following JavaScript events could be bound:

    click, dblclick, keydown, keypress, keyup, mousedown, mousemove,
    mouseout, mouseover, and mouseup.

    See http://docs.jquery.com/Events/live.

    You can use livequery.

    One thing you can do is, after replacing the select, you can rebind the change event to that select.

    For example:

    function replaceSelect() {
        var select = this;
        //other code
        $.post(document.URL,data,function(data){
            $(select).replaceWith(data.html);
            $('.myclass').change(replaceSelect);
        });
    
    }
    $('.myclass').change(replaceSelect);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a typical problem with SVN. I did a search in this repository
The typical Python threadpool will have a structure like this one: def run(self): while
Have this query: SELECT HOUR( DATE ) AS hr, COUNT( * ) AS cnt
I have this form, in which i need to populate a combo box with
I was thinking about a typical problem that is very JIT-able, but hard to
For my first question, I have your typical web e-com scenario where the user
I am looking for a Javascript solution to this problem: I have an XML
A typical problem in OO programming is the diamond problem. I have parent class
Typical problem, but I've done everything I can possibly think of to get this
I wrote a Javascript function that solves a typical problem: Given an HTML element,

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.