Is there any reason to use for ex. input#id? Why not just #id? Code below:
$("button").on("click", function() {
var rate = $("#rate_1").val();
var quant = $("#quant_1").val();
});
VS
$("button").on("click", function() {
var rate = $("input#rate_1").val();
var quant = $("input#quant_1").val();
});
HTML
<tr>
<td><input type="textbox" id="quant_1" class="txtbox"></input></td>
<td><input type="textbox" id="rate_1" class="txtbox"></input></td>
</tr>