The Noise of a web developer

jQuery Internet Explorer .change method handling

We recently had an interesting issue with Internet Explorer and the jQuery .change method. We had wanted to update a content item on the change of the checkbox. Everything worked well apart from in as usual, yup you guessed it… Internet Explorer.

Further testing showed that this error was due to how Internet explorer handles the change method of its checkboxes. IE only checks to see if the is a change when the element is no longer active. So your code only appear to be firing when you click off the checkbox element itself. Boo :-( .

So away round this was to use the click method. Job done.

This entry was posted in jQuery. Bookmark the permalink.

4 Responses to jQuery Internet Explorer .change method handling

  1. PQ21wa I’m impressed! You’ve mnaaegd the almost impossible.

  2. Ppl like you get all the brains. I just get to say tnhaks for he answer.

  3. And I was just wondrenig about that too!

  4. Ah, i see. Well that’s not too trckiy at all!”

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>