JSFiddle - React, Tailwind, and code Playground
by tiagocarvalho
HTML
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.8/jquery.validate.js"></script>
<form id="signupForm">
<input type="checkbox" id="termsConditions" name="termsConditions"/> I agree to the <a href="terms">terms and conditions</a>
<label style="float: none;" for="termsConditions" class="error" generated="true"></label>
<input type="submit" value="Submit"/>
</form>
JavaScript
$("#signupForm").validate({
rules:{
termsConditions : "required"
}
});