Javascript UnCheck Methods Don't Work #76

Closed
PhilipKirkbride opened this Issue Dec 19, 2012 · 2 comments

Comments

Projects
None yet
2 participants

Have tried several ways to uncheck the JQMobile check boxes with Javascript, none seem to work.

$('input[name=checkbox]').attr('checked', false);

$("input[type='checkbox']").checkboxradio('disable');

$("input[type='checkbox']").attr("checked",false).checkboxradio("refresh");

Methods 2 & 3 return the following the Javascript Console.

TypeError: Object [object Object] has no method 'checkboxradio'

Contributor

jasondscott commented Dec 19, 2012

When I run follow on kitchensink/checkboxes.html all of the items are checked.

$('input[type=checkbox]').attr('checked', true);
$("input[type='checkbox']").checkboxradio("refresh");

Do you have a jsfiddle or jsbin with some sample code?

It seems the problem is actually something to do with the Ripple Emulator if I go into kitchenshink/checkboxes.html and run the command you posted it works. If you turn the Ripple Emulator on it returns "TypeError: Object [object Object] has no method 'checkboxradio'".

I packaged the code and tested on DevAlpha and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment