0

On focus clear

How to use on focus to clear input field in JavaScript?

9th May 2018, 4:54 AM
love
1 Odpowiedź
+ 1
something like <input type=''text'' onfocus=''ddd()'' id=''inp''> <script> function ddd(){ document.getElementById(''inp'').value = "" } </script>
9th May 2018, 6:00 AM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar