Let's say I've got a text box. I want the background color of that box to change when a user clicks on that box to enter text. How would I code this? I think I need to use Javascript, but I'm not sure how.
Thanks!
EDIT: Clicks or tabs to the box. Basically whenever the focus is on the box.
Question
kylejn
Let's say I've got a text box. I want the background color of that box to change when a user clicks on that box to enter text. How would I code this? I think I need to use Javascript, but I'm not sure how.
Thanks!
EDIT: Clicks or tabs to the box. Basically whenever the focus is on the box.
Edited by kylejnLink to comment
https://www.neowin.net/forum/topic/770264-html-change-text-box-color-on-click/Share on other sites
5 answers to this question
Recommended Posts