SyntaxFix
Write A Post
Hire A Developer
Questions
You could use eval:
eval
eval(variablename + ".value = 'value'");