Javascript examples for DOM HTML Element:Input Text
Handle onchange event for input text field box
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <title>onChange Test</title> <script type="text/javascript"> function itWorks(){/*from w w w .j ava 2 s .c o m*/ console.log("it works!"); } </script> <form> <input type="text" onchange="itWorks();"> <input type="text" onchange="itWorks();"> </form> </body> </html>