Commonly-used jQuery snippets