0

My website is viewing perfectly fine in latest Firefox versions, chrome versions, and IE 9 and above. But the problem begins when it is opened in IE 8.

On debugging I explored that IE 8 does not support string functions like .trim, .indexof etc. So I have to find alternate methods for each string function.

But I have used these functions alot almost in every js.

I read on the net that this compatibility issue can be resolved by adding some meta tag in the head section. (x-ua-compatible).

Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133
Harsh
  • 27
  • 7

1 Answers1

1

You are right, .indexOf doesn't work for IE8 or less. You can use jQuery's $.inArray() $.trim() instead.

Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133