/ Published in: JavaScript
Check if the checkbox is checked or not on button click
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('.msisdn-submit').click(function () { if (!$('input#field_terms').is(':checked')) { alert('not checked'); return false; } });