There are two lists and a button. How to write the conditions correctly, that if the second list has a disabled property, then the button also needs to be assigned disabled ?
How to assign a button attribute, figured out. This is true:
$('#btn').attr('disabled', true); And how to get the property and check the list?