jquery set input text value in js code example
Example 1: jquery set textbox value
$.get('compz.php?prodid=' + x + '&qbuys=' + y, function(data) {
$('#subtotal').val(data);
});
Example 2: javascript change input value jquery
$('#IdOfTheField').on('change', function() {
alert( this.value );
});