Lets say i have 5 divs,
Div1 to div5.
They all have different display style,
sometimes 2 are none,
sometimes 2 are block.
sometimes all are none,
Sometimes all are block.
Due to the functions i set.
And i want to make a if statement that happens when all divs are style. Display= block.
Something like
If (all divs are style. Display. = block ) { something }
But i dont know how to use && for 5 divs in JavaScript if statement.
Please guide me further. Thanks!
Aucun commentaire:
Enregistrer un commentaire