Ryan Christiani wrote:In jQuery the $ is used to replace document.getElementById as a way of selecting elements i assume.
Almost, but not quite. The $() method in jQuery selects by many criteria, only one of which is by id.
For example:
$('#someId') selects the element with id someId, while
$('.someClass') selects all elements with class someClass, and
$('a["href"$=.pdf]') selects all anchors that reference PDF documents. So you can see that it's a lot more powerful than document.getElementById().