[jQuery] [Validate] Custom error message for a group of fields
Hi, let's take this example : $(#myform).validate({ groups: { username: fname lname }, errorPlacement: function(error, element) { if (element.attr(name) == fname || element.attr(name) == lname ) error.insertAfter(#lastname); else error.insertAfter(element); }, debug:true }) I want to c$(#myform).validate({ groups: { username: fname lname }, errorPlacement: function(error, element) { if (element.attr(name) == fname || element.attr(name) == lname ) error.insertAfter(#lastname); else error.insertAfter(element); }, debug:true }) If i want to declare a custom message that will be shown for the whole goup if one of the group elements is not filled ? thanks in advance!
[jQuery] Re: validate works for IE but Not for Firefox, Nor Opera Nor Safari Nor Chrome :S
Hi yeah i fixed that but still nothing :S so irritating!!! On Apr 8, 1:07 am, James james.gp@gmail.com wrote: Your HTML tags looks inconsistent. Are you using XHTML or not? In places you have tags like: input type=hidden / and you have: input type=hidden try fixing those up and see if it works. On Apr 7, 4:31 am, Bizzy knowledgebor...@gmail.com wrote: I'm working on a form, but can't get the validation to work on Firefox, it does work on IE though. any suggestions?
[jQuery] [validate]validate works for IE but Not for Firefox, Nor Opera Nor Safari Nor Chrome :S
I'm working on a form, but can't get the validation to work on Firefox, it does work on IE though. any suggestions?
[jQuery] [validate]validate works for IE but Not for Firefox, Nor Opera Nor Safari Nor Chrome :S
Hey everybody, I have been working on a project and i'm using the validation plugin in one form, but something really strange is happening .. :S the validation works perfectly on IE, but on firefox it just ignores it and let you submit the fields empty even if they are required. can anyone of you help me please? Thanks in advance. the code : script type=text/javascript src=/js/jquery/validate/ jquery.ExtraValidation.js/script script type=text/javascript jQuery(document).ready(function(){ jQuery(#frmEmployees).validate({ rules: { LastName:{ required: true } }, messages:{ LastName:{ required: nbsp; }, }, success: function(label) { label.html(nbsp;).addClass(checked); } }) }); /script !-- BEGIN UserInfoBlock -- form name=frmEmployees id=frmEmployees method=post input type=hidden name=ECAction value={{Action}} / input type=hidden name=ECState value=2 / input type=hidden name=UserID value={{UserID}} input type=hidden name=EmployeeID value={{EmployeeID}} input type=hidden name=AddID value={{AddID}} ... tr td valign=middleTest :/td td align=leftinput type=text name=LastName id=LastName/td /tr ... tr td align=rightinput type=submit name=Submit id=Submit value=Opslaan/td /tr tr tdbr /br //td /tr /form Thanks!