You can use either DOM’s native function getElementsByClassName('classname')
or jQuery selector $('.classname')
to find the target element.
See getElementsByClassName()
See selectors in jQuery
More Related Contents:
- Javascript: function doesnt work even though condition is met (hard for me to explain)
- How can I make my header smaller if i will scroll down the webpage [closed]
- Height equal to dynamic width (CSS fluid layout) [duplicate]
- Set cursor position on contentEditable
- What’s the easiest way to call a function every 5 seconds in jQuery? [duplicate]
- JavaScript asynchronous return value / assignment with jQuery [duplicate]
- Long Press in JavaScript?
- jQuery scroll() detect when user stops scrolling
- Remove items from array with splice in for loop [duplicate]
- jQuery: live() vs delegate()
- How to call ajax in WordPress
- Prototyping Object in Javascript breaks jQuery?
- Changing width property of a :before css selector using JQuery [duplicate]
- Dashed border animation in css3 animation
- jQuery: keyup event for mobile device
- How to split a string at the first `/` (slash) and surround part of it in a “?
- jQuery – Redirect with post data
- Using mousedown event on mobile without jQuery mobile?
- Click on option event
- Disable zooming of the page in desktop web browsers using Javascript/Jquery [duplicate]
- blur vs focusout — any real differences? [duplicate]
- How to convert a Title to a URL slug in jQuery?
- Focus tab or window
- how to convert xml to json using jquery
- Set default time in bootstrap-datetimepicker
- Jquery/Javascript Opacity animation with scroll
- Javascript Highlight Selected Range Button
- Find object having maximum value for the `id` property in an array of objects
- Truncate paragraph first 100 character and hide rest content of paragraph to show/hide rest contenct with more/less link
- Does jQuery strip some html elements from a string when using .html()?