Download highlight input script

Download files

Configuration

This script is easy to configure. All you have to do is to define how the active input should be highlighted. This is done by CSS. Then you have to call a function at the bottom of your page to initialize the script.

.textInput,textarea is the rule for the inputs when they're not highlighted. I'm using a white background color and a black border. .inputHighlighted defines how the input should look like when it's active. Here, I have defined
a dark green background color and a white text color. The border is defined as black.

Initialize the script

To initialize the script, add the following lines at the bottom of your HTML file: