0

I have jquery validation in my page which has two functionalities Submit,Search. When i click on submit, the page gets validated and once the correct values are entered the form gets submitted.

Now i have another button(Search) on the same page. When i click on that button the form again gets validated since the control submits the form. But i don't need the validation for this button.

//Code

<script type="text/javascript">
        jQuery(document).ready(function () {

 // binds form submission and fields to the validation engine
            jQuery("#form1").validationEngine('attach');
        });
    </script>

The above code makes the validation enable for both the buttons.

Is there any option to make the validation disabled on click of the Search button?

(Or)

Can this validation made to work OnClick of the button instead of submitting the form.

Note: This piece of code is in the master page.

Source: http://www.position-relative.net/creation/formValidator/demos/demoValidators.html

A Coder
  • 3,039
  • 7
  • 58
  • 129

0 Answers0