Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript What is ‘el’?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26853
    jamygolden
    Member

    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

    #76075
    Rob MacKay
    Participant

    I’ve seen it used as a variable – but it has been set before. You sure it’s not a var?

    #76076
    jamygolden
    Member

    You’re right, I’ve been looking at examples and it definitely is a variable, thanks :)

    Now the question is, ‘Why “el”?!’ lol

    #76143
    Chris Coyier
    Keymaster

    I use it a lot… “element”, like to remind you that the thing (the jquery object) is an element.

    #76069
    jamygolden
    Member

    Awesome, thanks Chris :p

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.