Could someone take the effort to explain me the difference between $ and $() in jquery?
I know $() is shorthand form of $jQuery() which takes any DOM element and turns it into a jQuery object.
But what I am not sure of is what is $ and how different is it from $(). Kindly enlighten me.
Thanks heaps,
Chaitanya
$is a function that can be called –$().The behaviour of
$()varies immensely depending on the parameters supplied, although all examples below will return ajQueryobject. It can:document.readyhandler –$(myfunc)$('#myid')$('<div>')$()$is also an object that contains various utility functions$.each, etc as properties of that object. In this context, it acts like a namespace for those functions.