Sorry. <select name="Category" id="Category" title="Please select something" validate="required:true"> <option value="">Choose a category</option> < option value="2">Automotive</option> <option value="3">Medical</option> </select>
2007/10/27, Web Specialist <[EMAIL PROTECTED]>: > > Rick > > I'm using Jorn's Form Validation plugin and this approach works fine: > > <select name="Category" id="Category" title="Please select something" > validate="required:true"> > <option value="">Choose a category</option> > < option value="">Automotive</option> > <option value="">Medical</option> > </select> > > Cheers > Marco Antonio > > > 2007/10/27, Rick Faircloth <[EMAIL PROTECTED]>: > > 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 > > > >