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.
Related Contents:
- popup when click link little like stackoverflow inbox in css
- Auto-size dynamic text to fill fixed size container
- Click button copy to clipboard
- Selecting element by data attribute with jQuery
- iframe to Only Show a Certain Part of the Page
- Slide right to left?
- jQuery on window resize
- Show div on scrollDown after 800px
- What is the easiest way to disable/enable buttons and links (jQuery + Bootstrap)
- Auto-scaling input[type=text] to width of value?
- Play/pause HTML 5 video using JQuery
- How to remove close button on the jQuery UI dialog?
- Find text string in jQuery and make it bold
- Activate CSS3 animation when the content scrolls into view
- How to automatically change the text size inside a div?
- jquery get HTML 5 Data Attributes with hyphens and Case Sensitivity
- jquery IE Fadein and Fadeout Opacity
- Number nested ordered lists in HTML
- Adding data attribute to DOM
- Add and remove a class on click using jQuery?
- Making radio buttons look like buttons instead
- How to set data attributes in HTML elements
- How do I auto-hide placeholder text upon focus using css or jquery?
- Can an iframe only show a certain part of the page?
- expand/collapse table rows with JQuery
- How do you create a toggle button?
- Bootstrap CSS Active Navigation
- Selecting only first-level elements in jquery
- Why is z-index ignored with position:static?
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery [closed]
- JQM (jQueryMobile) Dynamically added elements not displaying correctly and CSS is not applied
- position fixed header in html
- Creating a hole in a element [duplicate]
- Get the value of -webkit-transform of an element with jquery
- Is there a style selector in jQuery?
- CSS for the “down arrow” on a element?
- Use jQuery to hide a DIV when the user clicks outside of it
- Using jQuery to center a DIV on the screen
- Refresh/reload the content in Div using jquery/ajax
- How can I simulate an anchor click via jquery?
- call Fancybox in parent from iframe
- Change Active Menu Item on Page Scroll?
- Can I get div’s background-image url?
- Ajax in Jquery does not work from local file
- How to close an open collapsed navbar when clicking outside of the navbar element in Bootstrap 3?
- how to replicate pinterest.com’s absolute div stacking layout [closed]
- Display XML content in HTML page
- jQuery – auto size text input (not textarea!) [duplicate]
- jQuery checkbox event handling
- JavaScript: Changing src-attribute of a embed-tag