facebook

DOM 101 question

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #318714 Reply

    SonamGyato
    Member

    what’s the difference between

    var list = $(‘#m1-startup-list1’);

    i think it’s a jquery macro – but what does it return –
    doesn’t seem to be the DOM element.

    this is what i’m more familiar with and does return the
    named DOM element.

    var list = document.getElementById(“m1-startup-list1”);

    #318734

    support-michael
    Keymaster

    As you have already identified $(“selector”) is a jquery query that returns a jquery object that wraps 1 or more DOM elements that match the “selector”. Here is discription:
    http://www.vfstech.com/?p=40

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: DOM 101 question

You must be logged in to post in the forum log in