About this question
In this stripped down VF page, I have 2 standard inputs. I'm trying to get the value of the "testme" input from JS, but the 2nd alert never shows.
Am I missing something? VisualForce:
[removed] function SetLaunchD() { alert('ddate is...'); var ddate = document.getElementById('testme').val(); alert(ddate); } [removed] test input <input type="text" id="testme"> random input box <input type="Text" id="d2" value="" size="10" onblur="SetLaunchD();"> How do I fix document getElementById is not a function?