lundi 18 décembre 2017

How to have 2 condition to an if in jquery

I would like my if to activate only when the two conditions are validated. I tried this but can't figure out how to do it...

if (document.getElementById('SSD-250G'&&'HDD-1T').checked){
    $('#ssd-check').css({'background-color':'green'})
}

Aucun commentaire:

Enregistrer un commentaire