I am trying to create a simple JavaScript function. When someone inserts a number in an input field, the value of another field should change to that value. Her
input
for jQuery we can use below:
jQuery
by input name:
$('input[name="textboxname"]').val('some value');
by input class:
$('input[type=text].textboxclass').val('some value');
by input id:
$('#textboxid').val('some value');