CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
JavaScript Jungle
What is 'el'?
jamy_za
Permalink to comment
#
November 2010
I've seen this kind of thing all over the place:
$(el).get(0).focus()
What is el? I've searched for it, but I can't really find an answer so I thought I would check with you guys :p
Robskiwarrior
Permalink to comment
#
November 2010
I've seen it used as a variable - but it has been set before. You sure it's not a var?
jamy_za
Permalink to comment
#
November 2010
You're right, I've been looking at examples and it definitely is a variable, thanks :)
Now the question is, 'Why "el"?!' lol
chriscoyier
Permalink to comment
#
November 2010
I use it a lot... "element", like to remind you that the thing (the jquery object) is an element.
jamy_za
Permalink to comment
#
November 2010
Awesome, thanks Chris :p
Add a Comment
$(el).get(0).focus()What is el? I've searched for it, but I can't really find an answer so I thought I would check with you guys :p
Now the question is, 'Why "el"?!' lol