Commit b3089ba4 by Palti Sinaga

qweqwe

parents d93f670c 553ba6e1
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<div class="form-group"> <div class="form-group">
<div class="col-sm-10"> <div class="col-sm-10">
<label>ExtraBed</label> <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>
</div> </div>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<tr> <tr>
<td> Total Bayar</td> <td> Total Bayar</td>
<td>:</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> </tr>
</table> </table>
<br> <br>
...@@ -127,4 +127,14 @@ ...@@ -127,4 +127,14 @@
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
</div> </div>
<script>
function updateVal(object) {
var field = document.getElementById('tot_har');
field.value = parseInt(object.value) * 30000 + parseInt({{$totalHarga}});
}
</script>
@endsection @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