Convert Input fields for what is typed in - Javascript jQuery

Javascript examples for jQuery:Form Input

Description

Convert Input fields for what is typed in

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.10.1.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/*ww  w  . ja  va 2  s.co m*/
$('document').ready(function(){
    $('#position').change(function(){
         if($('#position').val()=="1"){$('#points').val("20");}
    });
});
    });

      </script> 
 </head> 
 <body> 
  <input value="position" id="position"> 
  <input id="points">  
 </body>
</html>

Related Tutorials