34
rated 0 times
[
40]
[
6]
/ answers: 1 / hits: 17291
/ 12 Years ago, sun, december 2, 2012, 12:00:00
I have string as this is test for alternative
. What I want to find is location of for
. I know I could have done this using alert(myString.indexOf(for))
, however I don't want to use indexOf
.
Any idea/ suggestion for alternative?
jsfiddle
Again, I need this done by Javascript only. No jQuery.. sadly :(
More From » indexof