jquery() Function

By: Dusty Arlia
Published on Wednesday, July 31, 2013, 09:56 PM
Last Updated on Saturday, July 11, 2015 at 9:06 PM
Total Updates: 2

You are able to access any jQuery function through the use of the jquery() function. jQuery defined the $() function to be used as a shortcut, because of how often you have to reference this function. They both work the same, but the use of $() is more common and recommended for speed (easier to type), readability, and file size. The benefits to using the shortcut function are minor, but it helps to build good habits and follow industry best practices.