What is that inline onchange-code supposed to do? That looks like it could conflict with the validation code. Otherwise I can see anything wrong in the code - could you post a testpage?
Jörn On Sat, Sep 6, 2008 at 5:24 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello All! > > First off, the jQuery Validator plugin is great! All the functionality > you could want in a form validation module. But, I have a small > problem with select boxes and the 'required' attributes. > > I have this <select> form: > > <label for='eventvenue'>City:</label><select name="eventvenue" > id="eventvenue" > onchange="document.getElementById('menus').style.display='inline';" > title='Please select a city.'> > <option value=""></option> > <option value="1">Portsmouth</option></select> > > And this is t he accompanying validation code: > > $(document).ready(function(){ > $("#eventForm").validate({ > rules: { > uploadedfile: { > required: true > }, > eventvenue: { > required: true > } > } > }); > }); > > However, when I select the 'empty' option, no error message is > displayed. > > Any help would be appriciated, thank you. >