when you use script to change the value of an input element the change event will not get triggered, though you can manually trigger it
$('[data-auto-select]').prop('checked', true).change();
//or $('[data-auto-select]').prop('checked', true).trigger('change');
Also use .prop() to set the checked state instead of .attr()