I have this variable and i want to add a class to it. I tryed this method, but this defenetly is not working
var someVar = '<i class="firstClass"></i>';// Html Markup to be used later.
someVar.addClass('secondClass');
I need a different method to adding a new class to the html markup.
Thanks
addClassmethod is only a method of a jQuery collection, and is used for adding a className to a DOM element.