jquery to set value of input field code example
Example 1: jquery change value of input
$('selector').val('new value');
Example 2: jquery set textbox value
$.get('compz.php?prodid=' + x + '&qbuys=' + y, function(data) {
$('#subtotal').val(data);
});