I have a program that assigns a variable as:

var theList = document.getElementById('theList');

it uses jquery, but if I write it like this:

var theList = $('#theList'); 

the function that uses that variable doesn't work.

What is the distinction between a jquery selector and using getElementById?

Edit
Report