good afternoon
I want to add a variable to the jQuery selector, but the syntax is incorrect:
var c = $(this).attr('class'); if ($('#articleThumb ul li img').hasClass(c)) { $('#articleThumb ul li img.'+c').clone().appendTo('
the class
img.class is a variable, not a constant, like img.birds .
thanks
source share