Answers for "hide an empty button"

0

hide an empty button

code_textarea.addEventListener('keyup', function(){
 if(code_textarea.value){
  upload_btn.classList.remove("hidden");
 }
 else {
  upload_btn.classList.add("hidden");
 }
});
Posted by: Guest on October-27-2021

Browse Popular Code Answers by Language