I am a jQuery beginner and while going through some code examples I found:
$(document.body)
and $(\'body\')
Is there any difference
Outputwise both are equivalent. Though the second expression goes through a top down lookup from the DOM root. You might want to avoid the additional overhead (however minuscule it may be) if you already have document.body object in hand for JQuery to wrap over. See http://api.jquery.com/jQuery/ #Selector Context