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