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:
- Handle dynamic content within .live()
- Passing attributes for an object as the second argument to the jQuery function itself
- How to group functions in jQuery
- How to convert JSON string into a JavaScript Object
- How to use .delay() for animation
- Effective styling a large number of elements
- How to remove the parent elements of any object
- How to perform action when element gains focus
- Using .end() for effective traversing
- Using .data() method for storing the info on DOM nodes
- Binding to getData.value
- Scope namespaces to a specific name or plugin
- How to namespace your event handlers
- How to bind events
- Using custom events for binding the same functionality for multiple pieces of code
- Using delegates to listen to events from a particular context
- How to change context of a function dynamically
- Creating your own selectors for plugins
- Treating jQuery objects like arrays
- Storing results from jQuery selection
- Using callbacks in jQuery
- Selecting elements within another element
- Accessing elements with IDs containing special characters
- Enabling or disabling form elements
- How to check some element for existing
- Searching of all nodes on page for particular piece of text
- How to retain information stripped from the DOM by .remove()
- How to find closest element to another
- One-click clearing of default input text values
- Using .slice() method to style only particular elements within a list
Once again, thanks to Addy Osmani for making this brilliant collection!
Comments
You are welcome! :)
is there any possibility for windows and Linux releases, i love the app’s features and thinking how to get smiler app for my windows 7
Thanks for the feedback. We are not sure of Windows or Linux version but promise to think about this for the future :)
Post a new comment
Comment as a Guest, or login with Google Account:
Thanks a ton for prepping this great collection! I had the posting from Addy Osmani on my todo list to go through manually to add it to Snippets and this saved me a great bunch of time!