Imagine if the background color is red and I want the input text field to be red as well. However, when you click inside the input field to type, it should turn into a regular text field. And of course, when you are not actively typing in the input field, it should return to its original red state.
This is a common scenario that is seen frequently. Maybe using toggleClass could help?
All my input fields are added dynamically with jQuery.
Appreciate any help in advance!