Posted By

envane21 on 10/23/15


Tagged

button click checkbox checked on


Versions (?)

Check if checkbox is checked


 / Published in: JavaScript
 

Check if the checkbox is checked or not on button click

  1. $('.msisdn-submit').click(function () {
  2. if (!$('input#field_terms').is(':checked')) {
  3. alert('not checked');
  4. return false;
  5. }
  6. });

Report this snippet  

You need to login to post a comment.