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');
Could be that the node has multiple classes in which case you might be able to use something like this: