Anyone knows why this isnt working in IE7 and how I can make it work?
var test = "hello";
for (var i = 0, len = test.length; i < len; i++) {
alert(test[i]);
}
or see http://jsfiddle.net/75Cqt/
Anyone knows why this isnt working in IE7 and how I can make it work?
var test = "hello";
for (var i = 0, len = test.length; i < len; i++) {
alert(test[i]);
}
or see http://jsfiddle.net/75Cqt/
Copyright © 2021 Jogjafile Inc.
IE7 doesn't support indexing into strings with
[i], you have to usecharAt(i). E.g.: