Support

Account

Home Forums Front-end Issues Get True / False field value Javascript Reply To: Get True / False field value Javascript

  • Never mind, I already found the solution! just check the attribute “checked”. If the box is checked it will return the value “checked”. Otherwise the attribute will be undefined.
    So by using this code I check all the boxes within a certain div:

    if (jQuery(this).attr("checked")) {
          // in here it means that the checkbox is checked
    }