Good Day
I want to add a variable into a jQuery selector, but the syntax is wrong:
var c = $(this).attr('class');
if ($('#articleThumb ul li img').hasClass(c)) {
$('#articleThumb ul li img.'+c').clone().appendTo('#articleFeatured');
}
the class
img.class is a variable and not a constant like img.birds for example...
Thank you