Is there any difference between: $(document)
and $(\"document\")
?
EDIT: also when into the .ready()
e.g. $(\"document\")
Your first example wil search for an variable or object called document within your JS. (be carefull, it is a predefined variable)
The second will search the page for a tag with the name "document".
var document = 'div#logo';
$(document); //will search for div#logo
$('document'); //will search for document