Add a class="cancel" to your cancel-button. Jörn
On Thu, May 15, 2008 at 1:46 PM, Gordon <[EMAIL PROTECTED]> wrote: > > I have a form with two submit buttons. > > <input type="submit" name="submit" value="Submit form" /> > <input type="submit" name="cancel" value="Cancel" /> > > On the server side I have a PHP script that ichecks if $_POST > ['cancel'] has a value. If it doesn't then it runs through the form > submit process. If it does have a value then it simply redirects to > another page without processing the form. > > My problem is that if my form isn't valid then the validate plugin > won't let me click the cancel button. it insists that the form is > valid before either button will work. Now naturally I want the form > to be validated when the submit button is triggered, but if the cancel > button is triggered then the status of the form is not relevant as > nothing will be done with it. I want the cancel button to submit the > form regardless of whether it's valid or not. > > How can I do this? >

