In my collection of styles, I have some interesting ones like:
.line{}
And also:
.line:focus{}
Each style has its own individual charm.
I am looking to use jQuery to focus on a div with the class .line
and change its style to .line:focus
. However, even after trying $('.line').focus();
, the style remains unchanged. It seems that the div with the .line class is not being focused on as expected.
Any tips or suggestions would be greatly appreciated. Thank you in advance :).