October 2009
1 post
4 tags
jQuery custom selectors
I like writing jQuery plugins, so I can separate functionality into distinct units. But applying the plugin sometimes requires some logic I’d rather have in my plugin itself. Example code Say I want to create a plugin that creates a lightbox-style image zooming effect. I want to apply it to all links pointing at an image: <a href="/images/photo1.jpg"><img...
Oct 14th
-1 notes