I have a form in my laravel project, in which I want to validate certain fields, the fact is that I use the required HTML5 attribute, the thing is that it only works on the elements input in the select , however, one does not work ... it does not matter if it is a normal select or a select2.
Can someone tell me if there is any incompatibility with Laravel or something?
<select id="hola" name="hola" required>.
<option value="" selected>
Choose option
</option>
<option value="hello_world">
Hello world!
</option>
<option value="goodbye_world">
Goodbye world!
</option>
</select>
In other projects this works perfectly, but I do not know if with laravel there is another way, without using validator, or JS Validate, or anything, I just want to use the HTML5 required.
Even if you remove the selected follow from the option , you still do the same, theoretically having value="" when doing submit should jump the same .