DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
jquery get element by class and data attribute
$
(
'.slide-link[data-slide="0"]'
)
.
addClass
(
'active'
)
;
PREVIOUS
NEXT
Tagged:
#jquery
#element
#class
#data
#attribute
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit