Javascript examples for DOM HTML Element:Input Text
Html disabled textfield to allow changes made
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript"> function changeVal(myval){//from w ww. j a v a 2 s.co m document.getElementById('text1').value = myval; } </script> </head> <body> <input type="text" name="text1" id="text1" readonly> <input type="button" onClick="changeVal('Change My Value')" value="Change"> </body> </html>