Hi,
var a = ['0', '1', '2', '3'];
for (var i = 0, l = a.length; i < l; i++)
{
textDiv.innerHTML.replace(/[0-9]{5}/g, function(){return x[i];});
}
> Das funktioniert nicht. Sieht jemand den Fehler?
Sieht jemand, wo x herkommen soll?
MfG ChrisB
--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/