JSFiddle - React, Tailwind, and code Playground

by Derek Anderson

HTML

<form>
<input type="checkbox" id="shit"/>
<input type="submit" text="submit"/>
    
</form>

JavaScript

$(document).submit(
     function(){
         var r = $("#id_send_message").is(":checked") ? confirm("Are you sure?  This message will go to everyone subscribed to this list. Press the 'OK' button to proceed.") : undefined;  
         alert(r);
     }
 );