JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
<form id='my_form'>
    <input type='checkbox' name='somename' value='somevalue' checked='checked' />
    
    <input type='checkbox' name='someothername' value='someothervalue' />
    </form>

JavaScript

$('#my_form :checkbox').each(function(){
     if( this.checked ) {
          alert( 'checked: ' + this.name + ' ' + this.value );
     } else {
          alert( 'Not checked: ' + this.name + ' ' + this.value );
     }
});