SyntaxFix
Write A Post
Hire A Developer
Questions
You can't access your fieldname as a global variable. Use document.getElementById:
fieldname
function updateInput(ish){ document.getElementById("fieldname").value = ish; }
and
onchange="updateInput(this.value)"