Selecting , clearing and focusing on input in Javascript.
Published in
1 min readJul 19, 2019
Learn how to select text, focus and clear the text in input box in Javascript.
input.value = ""
→ this will make the input value to empty string.
input.focus()
→ this method will set focus on the input box.
input.select()
→ this will select the text in the input box.
If you find this helpful surprise 🎁 me here.
Share if you feel happy 😃 😆 🙂 .
Follow Javascript Jeep🚙 if you feel worthy.