I need to disable all checkboxes that are not selected / checked. I tried with the following code:
$('input[type=checkbox]').change(function(){
if($(this).prop("checked", false)){
$('input[type="checkbox"]:checked', false).prop("disabled", true);
}
});
But it's wrong because it's not working.
I need a force to get this to work.
Thank you in advance.