'#someDiv' is a CSS3CSS selector which is semantically equivalent to getElementById('someDiv')
, in that it will select the element with ID 'someDiv'. So:
document.getElementById('someDiv')
==
// bracket notation will return a DOM element
$("#someDiv")[0]
// leaving it out will return a jQuery object
$("#someDiv")