input field focus code example
Example 1: css focus change color
<style>
.dabutton:focus {
background-color:yellow;
}
</style>
<button class="dabutton"></button> // <-- usage
Example 2: focus on input
document.getElementById("myText").focus();
Example 3: focus on input
$("input:text:visible:first").focus();