jquery find in array of elements by data attribute code example Example: jquery find by data attribute $('.slide-link[data-slide="0"]').addClass('active');