javascript - indexOf in IE8 throwing error but works in all other browsers -
hey have following js code:
for(var = choicesorder.indexof(cat)+1; i<choicesorder.length; i++) and throwing error: script438: object doesn't support property or method 'indexof'
how can go fixing since works in other browsers?
you can find prototype version can implement here: https://developer.mozilla.org/en-us/docs/javascript/reference/global_objects/array/indexof
Comments
Post a Comment