Grow your CSS skills. Land your dream job.

What is ‘el’?

  • # November 12, 2010 at 12:48 am

    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

    Rob
    # November 12, 2010 at 2:16 am

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

    # November 12, 2010 at 4:01 am

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

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

    # November 12, 2010 at 1:52 pm

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

    # November 13, 2010 at 4:23 am

    Awesome, thanks Chris :p

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".