SyntaxFix
Write A Post
Hire A Developer
Questions
Either document.getElementById('i1'), document.getElementById('i2'), or document.getElementsByName("username")[0] is returning no element. Check, that all elements exist.
document.getElementById('i1')
document.getElementById('i2')
document.getElementsByName("username")[0]