Link to home
Start Free TrialLog in
Avatar of manivineet
manivineet

asked on

jquery change event not working with IE6

It is indeed quite unfortunate that my client still uses IE6.
using jquery 1.4.2

The problem is that I open a window using a click event and do some edit operation in the new window.
I have a 'change' event attached to the row of a table which has input fields. Now when the window loads for the first time and I make a change in the input for the FIRST time, the change event does not fire. however, on a second try it starts working.
I have noticed that I e.g. I run a dummy page, i.e. create a new page(i work with visual studio) and run that page individually , the 'change' event works just fine.

what it going on? and what can i do, besides going back to 1.3.2 (by the way that doesn't work either, but haven't fully tested it yet)
<!--HTML-->
<table id="tbReadData">
<tr class="nenDataRow" id="nenDr2">
 <td>
 <input type="text" class="nenMeterRegister"  value="1234" />
  </td>
<tr />
<table>

<script type="text/javascript">
$(document).ready(function(){
 $('#tbReadData').find('tr').change(function() {
alert('this works');
}
});
</script>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of StealthyDev
StealthyDev

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ronan1979
ronan1979

a) what jquery version ?
b) does it work on FF ? even if your client use IE, try it on FireFox to see if it works and check the error console
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of manivineet

ASKER

well its was a problem at my end