I have this dropdown element in my form and I'm not quite sure how to make sure an item is selected using Semantic-UI Form Validation.
<div class="field">
<div class="ui selection dropdown">
<input type="hidden" name="month">
<div class="text">Month</div>
<i class="dropdown icon" ></i>
<div class="menu ui transition hidden">
<div class="item" data-value="1">January</div>
<div class="item" data-value="2">February</div>
<div class="item" data-value="3">March</div>
etc...
</div>
</div>
</div>
In the list of validation rules, I have:
month: {
identifier : 'month',
rules: [{
type : 'empty',
prompt : 'Please enter a month'
}]},
Could someone tell me what should be written as the type instead of 'empty'? I did not find anything in the doc that corresponded to this issue.