jQuery find element by data attribute value
You can also use .filter()
$('.slide-link').filter('[data-slide="0"]').addClass('active');
Use Attribute Equals Selector
$('.slide-link[data-slide="0"]').addClass('active');
Fiddle Demo
.find()
it works down the tree
Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.