I have the following html code:
$(document).ready(function () { $(".class").on('click', function () { $(".checkbox).prop('checked', true); }); });