I have the following HTML and jquery:
Test disabling submit button fo
This solution has the advantages of working on mobile and being quite simple: