All variables that are used to store/cache jQuery objects should have a name prefixed with a $. Always cache your jQuery selector returned objects in variables for reuse. var $myDiv = $("#myDiv"); $myDiv.click(function(){...}); Use camel case for naming variables. Use ID selector whenever possible. It is faster because they are handled using document.getElementById(). When using class selectors, d
![jQuery Coding Standards & Best Practices](https://cdn-ak-scissors.b.st-hatena.com/image/square/64863a2cbae0e584d09f8f683ae82eed116ed4c2/height=288;version=1;width=512/http%3A%2F%2Flab.abhinayrathore.com%2Fjquery-standards%2Fjquery.png)