Hi, all.

Quesiton:

How to validate the selection for a drop-down select input?

If choices are:

1 - Choose Category (This is the default selection)
2 - Automotive
3 - Medical

If the user doesn't change from "1 - Choose Category" I want
an error message instructing them to choose a category.

Something like:

rules: {

trans_category { not equal to: 'Choose Category' }

}

messages: {

trans_category { not equal to : "Please choose a category"}

}

Anyone have the answer off the top of their head?

Thanks,

Rick

Reply via email to