Check if one checkbox is checked (from a list, a table...)

/ Published in: jQuery
Save to your folder(s)

Vérifie si une checkbox a été cochée

Copy this code and paste it in your HTML
  1. function checkOneChecked () {
  2. if ($("input[type=checkbox][checked]").length != 0) {
  3. return true;
  4. }
  5. return false;
  6. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.