zondag 14 september 2008
cool stuff with page elements
Attach data from classnames to an element using $().data()
At DailyStrength, we're working on an abstract way to attach a Javascript behavior (popping a modal, sliding in a form) to objects -- journals, comments, etc. -- being displayed on the site. We wanted to attach some information to the objects by putting their type and ID in classnames.
(rebecca murphey)
Thanks, nice code-snippet.
op 12:17
Labels: webmaistro
Abonneren op:
Reacties posten (Atom)
0 reacties:
Een reactie posten