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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like