As another attempt to prevent bot spam comments on my site, I want to disable the submit button by default and let the user click the checkbox to enable it.
Here is my code:
<label>
<span class="notbot">
<input type="checkbox" class="acceptance" value="1" name="iaccept">
</span> I'm not a bot!
</label>
<input type="submit" value="Post Comment" id="submit" name="submit">
Here is a fiddle.
My question is, how can I do this using either Javascript or jQuery with cross browser compatibility in mind? I have come across various solutions with each having their issues.
Ideally a solution where if the user does not have JS enabled, then the button will not be disabled... If you choose to answer, please provide code example and update fiddle.