burnsj2
asked on
Javascript text box value with getElemendById()
I have a text box:
<input id="newAlbumName" onBlur="alert('val='+docum ent.getEle mentById(' newAlbumNa me').value )" type=text name='newAlbumName' value="1234">
When the onBlur event is triggered, it alerts me with "val=". Can anyone tell me how to get it to alert me with "val=1234", or whatever the value of the text box is?
Thanks.
<input id="newAlbumName" onBlur="alert('val='+docum
When the onBlur event is triggered, it alerts me with "val=". Can anyone tell me how to get it to alert me with "val=1234", or whatever the value of the text box is?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.