0

I am using jQuery validation plugin for UI validation. I have a Jquery menu to select the type of transaction. On certain menu selection there should not be any validation happening. I am not sure if there is a way to tell Jquery validation to be disabled

I am using a following ways for the validation

1) $.validator.addMethod()

2) $.validator.addClassRules()

3) $("#submitButton").validate({ rules: { some rules }, messages: { some messages }

on click of the submit button for a particular menu selection i want the validation to be turned OFF. Is there a way to achieve this?

4

1 に答える 1

2

この回答は、あなたが探しているものでなければなりません:class="cancel"トランザクションの種類が検証したくないものに変更されたときに、送信ボタンに追加してください。検証が必要なトランザクション タイプに変更されたら、クラスを削除するだけです。

于 2009-10-27T13:58:14.383 に答える