Answers for "HIDE div if not input focus"

CSS
2

hide input border on focus

input:focus{
    border: none;
}
Posted by: Guest on April-22-2021
0

hide div onfocus

<input type="text" 
    onfocus="document.getElementById('show_hide').style.display='block';"
    onblur="document.getElementById('show_hide').style.display='none';">
Posted by: Guest on August-10-2021

Browse Popular Code Answers by Language