Athlon Posted February 22, 2010 Share Posted February 22, 2010 <html><head><script type="text/javascript">function upperCase(){var x=document.getElementById("fname").valuedocument.getElementById("fname").value=x.toUpperCase()}</script></head><body>Enter your name: <input type="text" id="fname" onblur="upperCase()"></body></html> what ".value" suppose to mean ? Link to comment Share on other sites More sharing options...
ShadowMage Posted February 22, 2010 Share Posted February 22, 2010 .value refers to the input element's value attribute. In the case of your function it takes whatever is entered in the text box and makes it uppercase. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.