Skip to content

Checked and Unchecked is wrong... #34

@bit5

Description

@bit5

When using this checkbox, the checked and unchecked is reversed.

Look at this code
<input id="chk" type="checkbox" checked) />

You will see that the "NO" has been selected. And when you use in the js it is totally wrong! The No will be "TRUE" and Yes will become "FALSE".
$('#chk').checkboxpicker();
$('#chk').change(function () { alert ($(this).is(":checked")); });
$('#chk').prop('checked', false).trigger('change');

Any idea how to fix it?

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions