i know there are similar threads but i have tried what you suggested there but still couldn´t solve my problem.
for(var i = text.length-1; i>=0; i--)
{
if(text.charCodeAt(i) < 42 || text.charCodeAt(i) > 57)
{
text.splice(i,1);
}
}
alert(text);
Why is alert(text); not executed? Something is wrong with the Splice, please help me.