JQuery Mobile sucks

You have to add “.button(‘refresh’);” to change  view of the button.

<script>
$(document).ready(function() {
$(“#data_delete_btn”).attr(‘disabled’,’disabled’);

$(“#delete_button_checkbox”).click(function() {
if ($(this).is(‘:checked’)) {

$(“#data_delete_btn”).removeAttr(“disabled”).button(‘refresh’);
}
else {
$(“#data_delete_btn”).attr(‘disabled’,’disabled’).button(‘refresh’);
}
});
});
</script>