Tuesday, September 13, 2011

jQuery and IE8 not the best of friends

So I've been pulling my hair out with IE8 ... again. I wrote some code that was working like a charm in FF and Chrome:

$(this).val().trim().match(match)

Sadly this code did not work in IE8 and I got the following error:

"Object doesn't support this property or method"

Changing it to the below did the trick:

jQuery.trim($(this).val()).match(match)

Another part of my life wasted debugging IE issues :(

Followers