I've been struggling lately to understand why the .addClass function was not working on jqLite
element.addClass('active')
Element returns me an array of html elements, tested that over and over to be sure. I can hide(), show() , add a .css or get one, or even set .attr , but addClass resists me.
edit: element is a path in a svg block , and this is the reason that seems to make the addClass function irrelevant, still trying to fix it.
element is a jqLite object
Thank you.