title: Intercept a click on submit button and check validity of form jQuery
body: <p>I want to check validity of form on clicking the submit button. In case it is valid the form should submit otherwise do nothing.
  I've tried disabling the submit button and on click checking validity and enabling it.
  But I see two issues with this approach.
  1: Clicks are not detected on a disabled button
  2: Even if I manage to get a click detected, I'll probably end up in an infinite loop. The second click after the button is enabled will again trigger the validity check and so in.</p>