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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -