
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to fix Array indexOf() in JavaScript for Internet Explorer browsers?
To fix Array.indexOf() for Internet Explorer web browser, use the following −
jQuery.inArray( value, array [, fromIndex ] )
Add the following,
<!--[if lte IE 10]>
Let’s see the prototype here,
<!--[if lte IE 10]> <script> if (!Array.prototype.indexOf) { // add code } </script> <![endif]-->
- Related Questions & Answers
- How to block a website in your web browsers (Chrome and Internet Explorer)
- How to enable JavaScript in Internet Explorer (IE)?
- How to disable JavaScript in Internet Explorer (IE)?
- How can we debug JavaScript in Internet Explorer?
- How to run Selenium tests on Internet Explorer browser?
- How to give a warning for Non-JavaScript Browsers?
- How to enable / Disable Enhanced Protection Mode in Internet Explorer using PowerShell?
- What are the pre-conditions for Selenium Internet Explorer Driver or IE Driver?
- What is Selenium Internet Explorer Driver or IE Driver?
- Filter gray image, black around png in Internet Explorer 8
- Internet Explorer unable to render any kind of background color for the <main> element.
- Internet Explorer 8 will not modify HTML5 tags in print stylesheet
- Strange cursor placement in modal when using autofocus in Internet Explorer with HTML
- Using HP UFT GetCellData function on SAP Web Dynpro crash Internet Explorer
- How to use the IndexOf(,) method of array class in C#?
Advertisements