DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to add class on the base of has class in jquery
$( "ul li" ).addClass(function( index ) { return "item-" + index; });
Source by api.jquery.com #
PREVIOUS
NEXT
Tagged:
#add
#class
#base
#class
#jquery
ADD COMMENT
Topic
COMMENT
Name
2+1 =
Submit