JSFiddle - React, Tailwind, and code Playground

HTML

<label><input name="terms" type="checkbox" value="1"> Terms</label>

<form>
  <input type="submit" value="Submit form 1">
</form>

<form>
  <input type="submit" value="Submit form 2">
</form>

JavaScript

var $terms = $('[name="terms"]');
$('form').submit(function(){
	if ( !$terms.prop('checked') ) {
  	console.log('Terms not checked');
    return false;
  }
});