Search
 
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
Name
2+1 =