Friday, July 17, 2009

onchange and IE

onChange event handler, not supported by Internet Explorer, which is really bad.
As I was using checkbox, which has to hide or show other div on true/ false when checkbox changes its behaviour.

After a study I found that IE waits to loose the focus from the checkbox. As soon as I click on other object or on the page to make it work.

You can see working example at
In MSDN Forum they have used setTimeout Window Function. But this didn't work for me.

The only solution worked for me was replacing onChange with onClick event handler.

No comments:

Post a Comment