mardi 31 mars 2020

Two var as true in an IF statement

I am trying to figure out how I can use two var:

var s = document.getElementById('styledselect1');

var d = document.getElementById('styledselect2');

and check with an "if" statement if both of them are equal to a certain number, like below:

if (s.value == 0 and d.value == 5)

How can I declare this "and" between these two values?

styledselect1 and styledselect2 are select options..

Aucun commentaire:

Enregistrer un commentaire