To view this screencast, add it to
your cart
and
checkout.
You can buy this screencast for any price, including FREE!
Creating plugins for jQuery is trivially easy and can help you:
- clean up your javascript in individual applications
- share re-used javascript between multiple applications
- share your snazzy jQuery voodoo with others!
1 $.fn.color = function(color){ 2 return this.each(function(){ 3 $(this).css('color', color); 4 }); 5 }; 6 7 $('a').color('red').css('font-weight', 'bold'); 8 9 (function($){ ... }){jQuery)