I don’t understand the front-end, I encountered a small problem, no error was reported during use
But Adobe Dreamweaver CS6 prompted a syntax error
function sea(e,v) document.getElementById(e).value = v;
Following the voice in heart.
JS functions need to use {}
to enclose the function body, as follows:
function sea(e,v) {document.getElementById(e).value = v;}