atribuir textbox value a string code example
Example 1: get string value of boolean javascript
// boolean.toString()
let stringTrue = true.toString();
let stringFalse = false.toString();
Example 2: jquery set textbox value
$.get('compz.php?prodid=' + x + '&qbuys=' + y, function(data) {
$('#subtotal').val(data);
});