click on input and add css using css code example Example: css clicked event CSS clicked event :active { css declarations; }