I have the following elements:
var obj = ['nine', 'ten', 'eleven'];
var divs =[];
$.each(obj,function(key,value){
var values = value;
$(div).each(function(){
var divId = $(this).attr('id'); // Giving some separate id for the div to track it
var getClass = $(this).attr('class');
if(getClass.indexOf(values) >= 0) {
div.push("divId");
}
});
});
You can loop through the elements and the the result