feedburner
Enter your email address:

Delivered by FeedBurner

feedburner count

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.

0 reacties: