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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -