Questions
Tags
Sign In
How to apply style to input, if the entered text, and the focus is not received?
I tried to use focus, but when the mouse is removed, the color changes and the text that is
CSS
HTML
Muriel32
asked
July 8th 19 at 12:05
Related questions
2
Why does my iPhone garageband app paid?
7
How to organize "architecture" layout of the project (to compile the module)?
1
Problems connecting via anyconnect opensuse tumbleweed?
1
How to deal with the encoding when sending a letter?
2
How to take a screenshot with JavaScript?
1
As a function of the controller to fill the file (. sql) backup database?
0
Whether there are analogues Framerjs?
1
How to add points on the image?
More answers about
"How to apply style to input, if the entered text, and the focus is not received?"
1
answer
Mabel
answered on
July 8th 19 at 12:07
Solution
Hang event like onchange, it will check that if value is not empty then add a class, otherwise remove
https://jsfiddle.net/gangstarcj/6kbh7afx/
And with CSS don't like?
- Muriel32
commented on July 8th 19 at 12:10
:
https://jsfiddle.net/gangstarcj/6kbh7afx/
C by using css like in any way
- Mabel
commented on July 8th 19 at 12:13
If so
https://jsfiddle.net/gangstarcj/6kbh7afx/2/
- Mabel
commented on July 8th 19 at 12:16
Please
sign in
or
sign up
to write your answer or comment.
Find more questions by tags
CSS
HTML