How do i change prettyCheckable checkbox with jquery, to check and uncheck? I tried everything.. Actually i'm able to change, the checkbox checks and unchecks, but visually doesn't change.. I tried numerous ways:
$('#part_PAC-050-0142').attr('checked', true);
$('#part_PAC-050-0142').attr("checked","checked");
$('#part_PAC-050-0142').prop("checked", true).change();
$("ul > li > div > href", "#radio_parts").addClass("checked");
$('#part_PAC-050-0142').addClass("checked", true);
$('#part_PAC-050-0142').triggerHandler("click");
$('input.prettyC').prettyCheckable();
None of this worked, none changed visually the prettyCheckable checkbox..
You can use pretty checkable functions:
$('#part_PAC-050-0142').prettyCheckable('check');
and
$('#part_PAC-050-0142').prettyCheckable('uncheck');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With