Home / All Articles / jquery onchange input field value in input field demo

jquery onchange input field value in input field demo

<html> 
<head> 
<title>Text Object Value</title> 
<script type="text/javascript"> 
function passInInput() { 
    document.getElementById("output").value = document.getElementById("input").value; 
} 
</script> 
</head> 
<body> 
Enter lowercase letters for conversion to uppercase:<br> 
<form name="converter"> 
<input type="text" name="input" id="input" 
value="sample" onchange="passInInput()" /><br /> 
<input type="text" name="output" id="output" value="" /> 
</form> 
</body> 
</html> 

About Sushil Kumar

Check Also

What is higher order function in JavaScript?

A higher-order function is a function that either takes another function as an argument or …

Leave a Reply

Your email address will not be published. Required fields are marked *