Possible Duplicate:
document.getElementById vs jQuery
More jQuery newbieisms to inflict on you folks...
I have some code that is using jQuery more or less happily. My confusion is that, in one case, I get my hands on an identifier which is the ID of a div on the page. I expect that $(theIdentifier) will get its hands on the object, but it doesn't; console.log returns 'undefined'. However, document.getElementById(theIdentifier) succeeds -- it returns the thing I'm looking for, and further operations on the div work as expected.
What's up here? Shouldn't they be identical? Why isn't the jQuery version working?
Puzzled, obviously; thanks for any advice!