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

manivineetAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

StealthyDevCommented:
It means the problem is not with the new version of JQuery, there is someother problem in your main page.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rjdownCommented:
I see no reason why this shouldn't work. It's hard to tell without seeing the code for your page. If you're able to do that, it will help a lot with debugging the issue.

A couple of points though,

No need to use .find(), you can simply use

$('#tbReadData tr').change(function() {

Also, I wouldn't attach the event to the tr anyway, you should attach it to the input elements themselves

$('#tbReadData input').change(function() {

It's unlikely that will actually resolve your issue, but it's worth a try!
ronan1979Commented:
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
Terry_focusCommented:
Hi,

By rights a table cell does not have a change event to fire. You need to bind to the actual form elements, try this
$(document).ready(function(){
 $('#tbReadData :input').change(function() {
    alert('this works');
 }
});

Open in new window

manivineetAuthor Commented:
well its was a problem at my end
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.