How to check “checkbox” dynamically – jQuery Mobile

You need to refresh it after changing its’ .prop, using .checkboxradio('refresh'). This is the correct way to check checkbox/radio in jQuery Mobile.

Demo

$('.selector').prop('checked', true).checkboxradio('refresh');

Reference: jQuery Mobile API

Leave a Comment