Skip to content

Instantly share code, notes, and snippets.

@AlexZeitler
Created December 26, 2011 19:15
Show Gist options
  • Save AlexZeitler/1521955 to your computer and use it in GitHub Desktop.
Save AlexZeitler/1521955 to your computer and use it in GitHub Desktop.
$("#menu").get(); //get all DOM objects in the jQuery collection
var menu = $("#menu").get(0); //get the DOM object in the jQuery collection at index 0
var menu = $("#menu")[0]; //get the DOM object in the jQuery collection at index 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment