DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to check if .each first element
$('.selector').each(function(key, value){ if ( key === 0) { // do something if first element } });
PREVIOUS
NEXT
Tagged:
#check
#element
ADD COMMENT
Topic
COMMENT
Name
5+9 =
Submit