what is function($) in jquery
jQuery has two usage styles: 1  Via the $ function, which is a factory method for the jQuery object. These functions, often called commands, are chainable as they all return jQuery objects. 2  Via $.-prefixed functions. These are utility functions, which do not act upon the jQuery object directly.