Trouble changing the value of an input
This works fine to change an input:
Code:
document.theform.f10.value = 'test';But the input that gets changed needs to be based on a variable in the function. So, it needs to work like this:
Code:
var input = "f10";
document.theform.input.value = 'test';But I can’t get it to work.
Any advice?
View full post on Tycoon Talk
Changing, input, Trouble, Value'