SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Jun 29, 2008, 23:39 #1
- Join Date
- Jun 2008
- Location
- Hyderabad
- Posts
- 252
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
JS Array indexOf function problem
I have array
SR = [
"Als"
];
when I try
alert(SR.indexOf("Als"));
I am getting false.
How can I find whether a string is present in an array of strings using predefined functions(indexOf)?
-
Jun 30, 2008, 00:24 #2
- Join Date
- Jun 2008
- Location
- Hyderabad
- Posts
- 252
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Got solution for it, in fact a simple mistake. Please ignore this.
Bookmarks