VeroLom VeroLom - 2 years ago 119
Javascript Question

Jquery Validation plugin - input event

I'm using plugin for form validation.
I need to enable/disable submit button depending on form validation result.
How to do it?

Answer Source
  1. First you need to disable the button
  2. Listen to all Changes in the form

    $( "#myform :input" ).on('change', function(){
        var form = $( "#myform" );
            $('button).attr("disabled", false);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download