set value to text input jquery 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);
});