[jQuery] Re: How do I stop the form control (but not the label) itself receiving the error class
Jörn, Thanks! That was what I wanted! A lot of jQuery plugins have so many options that sometimes it's difficult to see the wood for the trees. Thanks again for pointing this out Diego, thank you also for your input into this matter. Cheers, Dave
[jQuery] Re: How do I stop the form control (but not the label) itself receiving the error class
Jörn, highlight does exactly what I want if I pass it an empty function, so that's great. How about adding the option to pass null or false for those times when you want to do nothing and just let the the error message take the strain? Cheers, Dave
[jQuery] Re: How do I stop the form control (but not the label) itself receiving the error class
Great stuff! In the meantime I'm looking forward to learning even more about your fabulous, time-saving plugin. Cheers! Dave
[jQuery] Re: How do I stop the form control (but not the label) itself receiving the error class
Jörn Zaefferer schrieb: Dave Stewart schrieb: Jörn, highlight does exactly what I want if I pass it an empty function, so that's great. How about adding the option to pass null or false for those times when you want to do nothing and just let the the error message take the strain? Makes sense. Gonna add that. Done: http://dev.jquery.com/changeset/4535 Jörn
[jQuery] Re: How do I stop the form control (but not the label) itself receiving the error class
Depends entirely on your code? What gives the input the 'error' class in the first place? On Jan 24, 9:58 am, Dave Stewart [EMAIL PROTECTED] wrote: Pretty much sums it up really. I only want the error label (of class error) to be displayed, but not the class of the text box or such like to have it's class updated. Thanks, Dave
[jQuery] Re: How do I stop the form control (but not the label) itself receiving the error class
SORRY - the word [jQuery Validation Plugin] was supposed to appear in the title, but didn't. To restate the problem: When I validate a form using the jQuery Validation Plugin, when it comes across a form element that doesn't validat, it does 2 things: 1. Adds, or shows the corresponding error label tag, and 2. Adds the error class to the form element. I only want to do the first action, and I don't want the form element to be altered. Is this possible? Thanks, Dave
[jQuery] Re: How do I stop the form control (but not the label) itself receiving the error class
Seems like everything you need is right here: http://docs.jquery.com/Plugins/Validation#Error_messages QUOTE: Error messages An error message displays a hint for the user about invalid elements, and what is wrong. There are three ways to provide error messages. Via the title attribute of the input element to validate, via error labels and via plugin settings (option messages). On Jan 24, 12:05 pm, Dave Stewart [EMAIL PROTECTED] wrote: SORRY - the word [jQuery Validation Plugin] was supposed to appear in the title, but didn't. To restate the problem: When I validate a form using the jQuery Validation Plugin, when it comes across a form element that doesn't validat, it does 2 things: 1. Adds, or shows the corresponding error label tag, and 2. Adds the error class to the form element. I only want to do the first action, and I don't want the form element to be altered. Is this possible? Thanks, Dave