I know that using the maxlength
attribute it is possible to limit the amount of characters of a input
.
Doubt: This property applies to select
, otherwise what would be its equivalent, or how to achieve the same goal.
<select maxlength="5">
<option value="opcao" maxlength="5">123456789</option>
</select>
Note that in the code above the attribute does not work, so how do I proceed?