Note that there are some explanatory texts on larger screens.

plurals
  1. PO<select> onchange with jQuery 1.3.2 and IE7
    primarykey
    data
    text
    <p>I have this typical problem with select. First let me make it clear that I am running <code>jQuery 1.3.2</code> which I know is pretty old but due to some reasons I cannot update it. My problem is with <code>jQuery 1.3.2</code> and <code>IE7</code>. Now the problem is I have the below select box...</p> <pre><code>&lt;select class="myclass"&gt; &lt;option value="select"&gt;Select&lt;/option&gt; &lt;option value="sunday"&gt;Sunday&lt;/option&gt; &lt;option value="monday"&gt;Monday&lt;/option&gt; &lt;option value="tuesday"&gt;Tuesday&lt;/option&gt; &lt;option value="wednesday"&gt;Wednesday&lt;/option&gt; &lt;/select&gt; </code></pre> <p>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 <code>change</code> event does not work on it anymore. I can use <code>live()</code> but that does not work in IE7 as of <code>jQuery 1.3.2</code>. I also cannot use <code>deligate()</code>, so is there any method by which i can achieve successive change events after the select has been replaced?</p> <p>If not is there any way i can bind the <code>.change()</code> function to the same element after the ajax call?</p> <p>Here's my script...</p> <pre><code>$('.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]] }); }); </code></pre> <p>Is rebinding the function an option here? I am looking for a solution besides adding <code>livequery</code>.</p> <p><a href="http://jsfiddle.net/lonewolfs/hycxJ/" rel="nofollow">Link to Fiddle</a> If you run this in IE9 it will work but not in IE7 and IE8</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload