Checkboxradio Is Not a Function

I am using jQuery 1.9.1, jQuery mobile 1.3.1 (js & css) in my web app. When I call checkboxradio to uncheck all the checkboxes, its throwing the exception "checkboxradio is not a function"

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

When I try the same as a sample app, it works.

The problem is: the function inside jQuery mobile 1.3.1.js file is not getting called. I do see the jQuery mobile 1.3.1.js in the scripts loaded in firebug.

Please advise on how to find out what is going wrong here.

3

1 Answer

Check here for checkbox uncheck script

JQUERY

$("#checklisttable input").each(function(){
    $(this).prop('checked', false);
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest