-3
I have a question in javascript,
code:
function abrirNav(){
if (document.getElementById("style-switcher").style.width="0px"{
document.getElementById("style-switcher").style.width="200px";
}
I need that when the width
of style-switcher
:
- is
0
, change to200px
, - is in
200px
change to0
.
If anyone can help me I’d be grateful.