Menu icon Foundation
Checkbox using jquery

I want to checkmark foundation checkbox using jquery. I am trying lot many ways but nothing works. I have inspected element in crome browser and observed that it adds the checked="checked" property but checkmark does not displays.
$('input:checkbox[name=nameofcheckbox]').attr('checked', true);

Checkboxjquery

I want to checkmark foundation checkbox using jquery. I am trying lot many ways but nothing works. I have inspected element in crome browser and observed that it adds the checked="checked" property but checkmark does not displays.
$('input:checkbox[name=nameofcheckbox]').attr('checked', true);

Lana James about 2 years ago

There are many ways in jQuery to check or uncheck checkboxes and it is simple too. 

This tutorial jQuery Check Checkbox will teach you many different ways to do checking & unchecking of checkboxes.