I want to display the SGST, CGST and IGST value from total amount and add these values in total amount and show in Grand total field. JavaScript code for find the GST value from total amount.
<table class="table table-stripped table-center table-hover">
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td class="text-end">Total</td>
<td class="text-end" id="total">250</td>
</tr>
</tbody>
</table>
<div class="row mt-5">
<div class="col-md-4 mt-3">
<div class="form-group">
<label>SGST @ <input class="GST-input" type="text" placeholder="00">
%</label>
<input type="number" class="form-control" disabled>
</div>
</div>
<div class="col-md-4 mt-3">
<div class="form-group">
<label>CGST @ <input class="GST-input" type="text" placeholder="00">
%</label>
<input type="number" class="form-control" disabled>
</div>
</div>
<div class="col-md-4 mt-3">
<div class="form-group">
<label>IGST @ <input class="GST-input" type="text" placeholder="00">
%</label>
<input type="number" class="form-control" disabled>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>Grand Total</label>
<input class="form-control" type="text" disabled>
</div>
</div>
</div>