I come to you with a slightly easy question to see who can answer me.
I have a normal input type number with its two arrows to increase and to decrease limited to a minimum of 1 and a maximum of one hundred;
<input
type="number"
min="1"
max="100" value="{{ $item->quantity }}" id="product_{{ $item->id }}"
>
<a
href="#"
class="btn btn-warning btn-update-item"
data-href="{{ route('cart-update', $item->slug) }}"
data-id = "{{ $item->id }}">
<i class="fa fa-refresh"></i>
</a>
The problem was after someone simply placed the cursor inside the input
and started writing letters and numbers; then I get a lot of errors with the letters and with the numbers does not leave any error, but then it does not let me advance in other functions to have more than the maximum number.
Is there a way that no user can edit this line in a forced way?