I've just bumped into very interesting Tweet by our friend Bruno Moniz. He proposed to make a file of 31 jQuery snippets listed at Addy Osmani's site.

This can be very good way to promote our ‘snippet:’ URI scheme in action! So, please find the list of really useful jQuery snippets below. I've decided to combine original 10th and 11th ones together:

  1. Handle dynamic content within .live()
  2. Passing attributes for an object as the second argument to the jQuery function itself
  3. How to group functions in jQuery
  4. How to convert JSON string into a JavaScript Object
  5. How to use .delay() for animation
  6. Effective styling a large number of elements
  7. How to remove the parent elements of any object
  8. How to perform action when element gains focus
  9. Using .end() for effective traversing
  10. Using .data() method for storing the info on DOM nodes
  11. Binding to getData.value
  12. Scope namespaces to a specific name or plugin
  13. How to namespace your event handlers
  14. How to bind events
  15. Using custom events for binding the same functionality for multiple pieces of code
  16. Using delegates to listen to events from a particular context
  17. How to change context of a function dynamically
  18. Creating your own selectors for plugins
  19. Treating jQuery objects like arrays
  20. Storing results from jQuery selection
  21. Using callbacks in jQuery
  22. Selecting elements within another element
  23. Accessing elements with IDs containing special characters
  24. Enabling or disabling form elements
  25. How to check some element for existing
  26. Searching of all nodes on page for particular piece of text
  27. How to retain information stripped from the DOM by .remove()
  28. How to find closest element to another
  29. One-click clearing of default input text values
  30. Using .slice() method to style only particular elements within a list

Once again, thanks to Addy Osmani for making this brilliant collection!