SyntaxFix
Write A Post
Hire A Developer
Questions
For me it works:
document.getElementById("checkyear").value = "1"; alert(document.getElementById("checkyear").value);
http://jsfiddle.net/zKNqg/
Maybe your JS is not executed and you need to add a function() {} around it all.