You need to refresh it after changing its' .prop, using .checkboxradio('refresh'). This is the correct way to check checkbox/radio in jQuery Mobile.
$('.selector').prop('checked', true).checkboxradio('refresh'); Reference: jQuery Mobile API
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack Internal You need to refresh it after changing its' .prop, using .checkboxradio('refresh'). This is the correct way to check checkbox/radio in jQuery Mobile.
$('.selector').prop('checked', true).checkboxradio('refresh'); Reference: jQuery Mobile API
You need to refresh it after changing its' .prop, using .checkboxradio('refresh'). This is the correct way to check checkbox/radio in jQuery Mobile.
$('.selector').prop('checked', true).checkboxradio('refresh') You need to refresh it after changing its' .prop, using .checkboxradio('refresh'). This is the correct way to check checkbox/radio in jQuery Mobile.
$('.selector').prop('checked', true).checkboxradio('refresh'); Reference: jQuery Mobile API