I have an Array- myArray which is filled with objects obtained while looping using ".each"
Now I want to add a class .active
the array object can be printed using alert and shows correct innerhtml.
but how do i add class to the object?
Code:-
var myArray=new Array();
I tried this:-
$(myArray[1]).addClass('active');
.eachloop as well