apply css class when an input is on focus code example
Example 1: input outline focus
input:focus, textarea:focus {
background-color: #FFFF66;
border: 1px solid #F47E58;
}
Example 2: javascript select input text on focus
focusMethod = function getFocus() {
document.getElementById("myTextField").focus(); //select the input textfield and set the focus on it
}