[jQuery] Re: trigger validation by input:button

2009-07-06 Thread Alletha McIntyre
3:20 PM To: jQuery (English) Subject: [jQuery] Re: trigger validation by input:button By the way. Do you have any examples of where you've implemented this sort of thing? I'd like to see it in action somewhere. I learn well by studying working examples. On Jul 7, 12:03 am, Alletha McInt

[jQuery] Re: trigger validation by input:button

2009-07-06 Thread Jon
ilto:jquery...@googlegroups.com] On > Behalf Of Jon > Sent: Tuesday, 7 July 2009 2:58 PM > To: jQuery (English) > > Cc: Alletha McIntyre > Subject: [jQuery] Re: trigger validation by input:button > > So I got the error to go away by using: > var validator = $("#tes

[jQuery] Re: trigger validation by input:button

2009-07-06 Thread Jon
! > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Jon > Sent: Tuesday, 7 July 2009 2:58 PM > To: jQuery (English) > > Cc: Alletha McIntyre > Subject: [jQuery] Re: trigger validation by input:button > &

[jQuery] Re: trigger validation by input:button

2009-07-06 Thread Alletha McIntyre
o: jQuery (English) Cc: Alletha McIntyre Subject: [jQuery] Re: trigger validation by input:button So I got the error to go away by using: var validator = $("#testForm").validate(); But now the problem is that the button proceeds to the next step, even if there are errors. I can't

[jQuery] Re: trigger validation by input:button

2009-07-06 Thread Jon
So I got the error to go away by using: var validator = $("#testForm").validate(); But now the problem is that the button proceeds to the next step, even if there are errors. I can't get it to not display #step_2 when there are errors. It was suggested that I try using class="{required:true} on t

[jQuery] Re: trigger validation by input:button

2009-07-06 Thread Jon
I have tried unsuccessfully to implement this solution, but I keep getting the error: validator is not defined if (validator.element("#btnNext1")) { Here is my code: $(document).ready(function(){ $.validator.addMethod("step", function(value, element, param) { var i

[jQuery] Re: trigger validation by input:button

2009-06-23 Thread Mac
Hi Matt I came across the same issue when I tried to create a wizard. I overcame this by doing the following: Write a validator extension that looks something like this and use the add method to add it: $.validator.addMethod("step", function(value, element, param) { var isValid = true;

[jQuery] Re: trigger validation by input:button

2009-06-23 Thread Liam Potter
As long as the buttons do not have any submit events binded you should be fine. I'm not used either plugin though. Pascal wrote: I am new to Jquery and Validate and have similar issue, as anyone got a solution? On Jun 12, 7:58 am, Matt wrote: Hi, I have been working on a big form and u

[jQuery] Re: trigger validation by input:button

2009-06-23 Thread Pascal
I am new to Jquery and Validate and have similar issue, as anyone got a solution? On Jun 12, 7:58 am, Matt wrote: > Hi, > > I have been working on a big form and using jquery plug-in (wizard > form) to divide tit into small subforms. Now, I am trying to integrate > the Validation plugin to deal