Get textfield value : TextField : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » TextField »

 

Get textfield value



<html>
<head>
  <script type="text/javascript">
  <!--
    function convertText() {
      document.SampleForm.myText.value = document.SampleForm.myText.value.toUpperCase()
   }
  -->
  </script>
</head>
<body>
  <form name="SampleForm">
    <input type="text" name="myText">
    <input type="button" value="Convert" onclick="convertText()">
  </form>
</body>
</html>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» TextField