treehouse : what would you like to learn today?
Web Design Web Development iOS Development

difference between jQuery Object and Dom Element

  • Hopefully, this is a pretty straightforward question for someone.

    I'm just diving into plugin development (definitely for personal use until I wrap my head around it better), and am using Doug Neiner's Starter tool http://starter.pixelgraphics.us/ that Chris recommends.

    What I am not totally clear on is this:
    // Access to jQuery and DOM versions of element
    base.$el = $(el);
    base.el = el;


    What do those actually look like? How are they different? Why would I call one over the other?

    Sorry I don't have a very good example to use for illustration...

    -Jacob