Saturday, May 9, 2009

jQuery helps overcome IE's brain-dead behaviour...again!

This is one is short and sharp.

If you've ever tried to use someArray.indexOf(somevalue) in Internet Embarrassment, you'll have discovered that Microsoft's pathetic excuse for a browser is, well, just that!

Thankfully, jQuery can provide the needed functionality with the following:
jQuery.inArray(value, Array) or
$.inArray(value, Array)
Short and sweet.

ps: You could just use Firefox or any of the other self-respecting browsers...

pps: Comments and/or links to this article are most welcome!

No comments:

Post a Comment