Search by tutos and I did not find anything, someone went through this?
<div class="row">
<div class="col-md-2">
Valor:<br />
<input type="number" class="form-control" id="txtvalor" value="0" Placeholder="Valor" />
</div>
<div class="col-md-2">
Porcentaje:<br />
<input type="number" class="form-control" id="txtporcentaje" value="0" placeholder="Porcentaje" />
</div>
<div class="col-md-2" style="vertical-align:bottom">
<button type="submit" class="btn btn-primary" id="btngravadescuentos"> Cargar </button>
</div>
</div>
When you press load you have to validate if it is full one, if none is full it makes me a required and if I want to fill in both you do not have to let me fill in.
I accept any suggestion
I ARRIVE THIS
1.- Select Discount is by default and is an empty value - a required if I press the "Select a discount" button
2.- a required if you press the button and the percentage or fields are not filled value
3.- a message (not alert) that says just fill a field "value or percentage"