i have created form which have text box in foreach loop for multiple textbox, textbox have dynamic Id.
so id for textbox creating like id="cmbeditqty-1"
.
but if two textbox will create then how can i get those two values in different variable?
<td>
<input class="form-control" type="text" class="cmbeditqty" id="cmbeditqty-<?php echo $i; ?>" style="width: 250px;" name="qty">
</td>
<td>
<input class="form-control" type="text" id="cmbeditprice-<?php echo $i; ?>" style="width: 250px;" name="itemprice">
</td>