Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add variable to nth child jquery

var position = 5;

$("#daddy > div:nth-child(" + position + ")").animate({
    opacity: 0.01,
}, 500);​
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #variable #nth #child #jquery
ADD COMMENT
Topic
Name
6+1 =