Commit 553ba6e1 by Juliper

no message

parent de32596c
......@@ -40,7 +40,7 @@
<div class="form-group">
<div class="col-sm-10">
<label>ExtraBed</label>
<input type="number" min="0" name="extrabed" class="form-control" id="inputEmail3" >
<input type="number" min="0" name="extrabed" onchange="updateVal(this)" class="form-control" id="exbed" >
</div>
</div>
......@@ -116,7 +116,7 @@
<tr>
<td> Total Bayar</td>
<td>:</td>
<td><input type="text" name="total_harga" value="{{$totalHarga}}" disabled></td>
<td><input type="text" id="tot_har" name="total_harga" value="{{$totalHarga}}" disabled></td>
</tr>
</table>
<br>
......@@ -128,4 +128,14 @@
<div class="clearfix"></div>
</div>
</div>
<script>
function updateVal(object) {
var field = document.getElementById('tot_har');
field.value = parseInt(object.value) * 30000 + parseInt({{$totalHarga}});
}
</script>
@endsection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment