Multiple conditions: If checkbox and radiobutton are clicked, then add css to div ID

Hi all,

I’ve found a solution to change the css style of an ID when 2 checkboxes are clicked.

$('input:checkbox').change(function(){
	if($('#checkboxone').is(":checked") && 
	   $('#checkboxtwo').is(":checked") 
) 
    {
    $('#textfield').css("background-color", "blue");
    } 
    else {
        $('#textfield').css("background-color", "white");
    }
});

Unfortunately I can’t find a solution for a combination between a checked checkbox and a checked radio button.

Can you please help me out?

How to Get Selected Radio Button Using jQuery