DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Events

06.12.2006
| 1541 views |
  • submit to reddit
        I like being able to attach 'events' to buttons/links like this... don't think prototype can do this

$("a.codeButtonB").click(function(){$("pre.codeB").toggle()});