I've been struggling recently to figure out why I can't use the .addClass method on jqLite.
element.addClass('active')
I have confirmed that element returns an array of HTML elements, and I have tested this multiple times. It's strange because I can successfully use other methods like hide(), show(), applying css styles, getting attributes, and setting attributes, but for some reason, addClass isn't working for me.
Edit: The element in question is a path within an SVG block, which might be why the addClass method isn't functioning as expected. However, I am still attempting to troubleshoot and resolve the issue.
The element is a jqLite object.
Thank you.