How to use jQuery.validate to enable submit button?

How to use jQuery.validate to enable submit button?

I have seen a few site showing that the validate plugin can be used to toggle the submit button on a form I have tried a few example but cant get it working this is my code below I have it placed within the ready function just after my validate rules etc

  1. $('#form input').bind('keyup blur click', function () { // fires on every keyup & blur
  2.             if ($('#form').validate().checkForm()) {                   // checks form for validity
  3.                 $('#submit').removeClass('button_disabled').attr('disabled', false); // enables button
  4.             } else {
  5.                 $('#submit').addClass('button_disabled').attr('disabled', true);   // disables button
  6.             }
  7.     });

This is my buttons code

  1. <button id="submit" disabled="false" type="submit">Submit</button>

Can anyone point me in the right direction please?