how do i toggle visibility between 2 canvas -
i swape canvas page, have try code gives me error;
if (e.keycode == 13) { thecanvas.style.visibility == 'visible' thecanvas.style.visibility = 'hidden'; thecanvas1.style.visibility = 'visible'; } else { thecanvas.style.visibility = 'visible'; thecanvas1.style.visibility = 'hidden'; } });
try this
if (e.keycode == 13) { thecanvas.style.visibility = 'hidden'; thecanvas1.style.visibility = 'visible'; });
the else not needed , main if statement
hope helped mukund2003
Comments
Post a Comment