jQuery-Form-Validator icon indicating copy to clipboard operation
jQuery-Form-Validator copied to clipboard

Validate Dropdown list

Open tulasikrishna6 opened this issue 10 years ago • 5 comments

Hello, Thanks for the plugin, it is doing a great job far for my application. Is there any way to validate the Dropdown list values? I have few dropdowns in my form and not knowing how to validate the same.

tulasikrishna6 avatar Dec 11 '15 17:12 tulasikrishna6

Can you explain what you mean by drop-down? Is it ordinary select-elements or are you using a javascript lib of some sort?

victorjonsson avatar Dec 16 '15 08:12 victorjonsson

I mean the ordinary select element in html `

`

tulasikrishna6 avatar Dec 16 '15 09:12 tulasikrishna6

You can apply the same data-validation attribute on select elements

victorjonsson avatar Dec 16 '15 09:12 victorjonsson

How to validate selectbox?

<select>
 <option>select 1></option>
<option>select 1></option>
</select>

if none is selected it should show an error message?

Randore avatar May 16 '18 15:05 Randore

Thanks found the example in doc's

Randore avatar May 16 '18 16:05 Randore