Hello I have copied and modified the form from forms-car-rental.html
I am using the buttons to show/hide elements it is required but I can't seem to show the errors, here's my code.
<div class="col_full">
<div class="btn-group my-tab btn-group-toggle nav" data-toggle="buttons">
<a href="#tab-cash-payment" class="btn btn-outline-secondary flex-fill" data-toggle="tab">
<input type="radio" name="cash-payment" id="order-cash-payment" class="required" value="cash">Cash
</a>
<a href="#tab-card-payment" class="btn btn-outline-secondary flex-fill" data-toggle="tab">
<input type="radio" name="card-payment" id="order-card-payment" class="required" value="card">Card
</a>
</div>
<div class="tab-content">
<div class="tab-pane fade mt-3" id="tab-cash-payment">
Pay cash on collection or delivery.
</div>
<div class="tab-pane fade mt-3" id="tab-card-payment">
<div class="row">
<div class="col-md-6 col-sm-6 form-group">
<label>Card Number*</label>
<input type="text" name="card-number" class="sm-form-control required" value="" placeholder="16 digit card no">
</div>
<div class="col-md-3 col-sm-6 form-group">
<label>Expiry*</label>
<input type="text" name="card-expiry" class="sm-form-control required" value="" placeholder="MM/YY">
</div>
<div class="col-md-3 col-sm-6 form-group">
<label>CVC*</label>
<input type="text" name="card-cvc" class="sm-form-control required" value="" placeholder="3 digit CVC">
</div>
<div class="col-md-12 form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="billCheck">
<label class="form-check-label" for="billCheck">
Same billing address as delivery address?
<!-- show form, hide checkbox if delivery order else show -->
</label>
</div>
</div>
<div class="col-6 form-group">
<label for="billing-form-address">Address:</label>
<input type="text" id="billing-form-address" name="billing-form-address" value="" class="sm-form-control" />
</div>
<div class="col-6 form-group">
<label for="billing-form-address-2">Address 2:</label>
<input type="text" id="billing-form-address2" name="billing-form-adress" value="" class="sm-form-control" />
</div>
<div class="col-6 form-group">
<label for="billing-form-postcode">Postcode</label>
<input type="text" id="billing-form-postcode" name="billing-form-postcode" value="" class="sm-form-control" />
</div>
</div>
</div>
</div>
</div>Can you help show error message if it isn't filled in? Cheers.
