I need to find a checkbox with a class that is contained within the variable preciseClass.
My attempt below is not working. Where am I going wrong?
var preciseClass = $('#box2').attr('class');
$('#box1').find('li input:checkbox.' + preciseClass).attr('checked', 'checked');