Topic: SELECT option - REQUIRED
studio77 priority asked 1 year ago
<div class="col-lg-12">
<div class="form-group position-relative mb-5">
<select class="select" id="position" name="position" placeholder="<?= translate('Izaberite poziciju') ?>" required>
<option value="">Izaberite</option>
<option><?= Translate('Roštilj') ?></option>
<option><?= Translate('Giros') ?></option>
<option><?= Translate('Palačinke') ?></option>
<option><?= Translate('Šalter') ?></option>
<option><?= Translate('Magacin') ?></option>
<option><?= Translate('Vozač') ?></option>
</select>
<div class="invalid-feedback">
<?= translate('Popunite polje') ?>
</div>
</div>
</div>
This is a column in a form. I'm looking for a solution to make the 'select' element required, just like the other form elements, such as input and radio buttons. While the current form works with other elements, the 'select' element is not behaving as expected. Can you offer the best advice on how to resolve this issue? Thank you.
Add comment
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.2.0
- Device: Desktop PC
- Browser: Google Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No