Answers for "change background color of input field with javascript"

CSS
3

html input background color

input[type="text"], textarea {

  background-color : #d1d1d1; 

}
Posted by: Guest on February-16-2020
4

javascript change color of text input

document.getElementById("yourInputID").style.color = 'the color of your choice';
Posted by: Guest on November-29-2020

Code answers related to "change background color of input field with javascript"

Browse Popular Code Answers by Language