In the context of jQuery, $ refers to the global jQuery object.
$. by itself is invalid JavaScript. As $ is an object, methods on this object are called like on any other object: $.methodname().
Maybe it becomes clearer by substituting $ with jQuery: jQuery.methodname().