[jQuery] validation plugin question
Can this plugin be used when there is no actual submit, just redirect via a tag. However before doing redirect I need to make sure that value entered in the filed is valid?
[jQuery] Re: Jquery validation plugin question
Thanks. It gives me an error saying element.attr is not a function What is wrong with this: highlight: function(element, errorClass) { if (element.attr(name) == aupairLanguageList) $(#multiSelect-aupairLanguageList-title).addClass(error); }, unhighlight: function(element, errorClass) { if (element.attr(name) == aupairLanguageList) $(#multiSelect-aupairLanguageList-title).removeClass (error); } On Mar 26, 12:03 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Use the highlight and unhighlight options for that. Jörn On Thu, Mar 26, 2009 at 3:21 PM, markstegg...@googlemail.com markstegg...@googlemail.com wrote: Hello, Thanks for building this validation plugin, I like it. I have a question: The error class automatically gets added to the label with the same for= name, but for a certain error I need to change the element that gains the error class. For instance, I added this line to the error placement so that a certain element receives the error class but then realised the error class would not be removed when the error is corrected by the user: code else if (element.attr(name) == aupairLanguageList) { error.insertAfter(#multiSelect-aupairLanguageList-content); $(#multiSelect-aupairLanguageList-title).addClass(error); } /code Any Ideas? Thanks
[jQuery] Jquery validation plugin question
Hello, Thanks for building this validation plugin, I like it. I have a question: The error class automatically gets added to the label with the same for= name, but for a certain error I need to change the element that gains the error class. For instance, I added this line to the error placement so that a certain element receives the error class but then realised the error class would not be removed when the error is corrected by the user: code else if (element.attr(name) == aupairLanguageList) { error.insertAfter(#multiSelect-aupairLanguageList-content); $(#multiSelect-aupairLanguageList-title).addClass(error); } /code Any Ideas? Thanks
[jQuery] Re: Jquery validation plugin question
Use the highlight and unhighlight options for that. Jörn On Thu, Mar 26, 2009 at 3:21 PM, markstegg...@googlemail.com markstegg...@googlemail.com wrote: Hello, Thanks for building this validation plugin, I like it. I have a question: The error class automatically gets added to the label with the same for= name, but for a certain error I need to change the element that gains the error class. For instance, I added this line to the error placement so that a certain element receives the error class but then realised the error class would not be removed when the error is corrected by the user: code else if (element.attr(name) == aupairLanguageList) { error.insertAfter(#multiSelect-aupairLanguageList-content); $(#multiSelect-aupairLanguageList-title).addClass(error); } /code Any Ideas? Thanks
[jQuery] validation plugin question
playing around with it. don't want to get error messages displayed. i'm just putting in a general error message at top and highlighting required fields. but the label for errors gets created with a display: inline set on the element which is thwarting me from not showing it. looking at the marketo example ( for 2 hours now ), i see no such display: inline being set but can't figure out why that is. can anyone explain?