Link to home
Start Free TrialLog in
Avatar of burnsj2
burnsj2

asked on

Javascript text box value with getElemendById()

I have a text box:

<input id="newAlbumName" onBlur="alert('val='+document.getElementById('newAlbumName').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.
ASKER CERTIFIED SOLUTION
Avatar of devic
devic
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial