I have this code here:
var first = orfirst;
second = eval("document.love.name" +ea).value.toUpperCase();
var names=second;
second = second.replace(r,"");
with this code:
("document.love.name" +ea).value.toUpperCase();
I get an error: Uncaught TypeError: Cannot read property 'name1' of undefined
where:<input value='' name=name1 onkeyup=checnum(this) type=text size=15>
because they say that this code id deprecated: document.love.name
I try to make it like this: second = eval("document.getElementById('name')" +ea).value.toUpperCase();
.
and then I get this error: Uncaught SyntaxError: Unexpected number
Can anyone show me or correct the codes? THanks in advance.