-
The rel attribute and scripting.
Hi all,
As many other developers before me, I often use the "rel" attribute on links to pass along some data to a Javascript function. Usually this data corresponds to an identifier for a related element - the class name of a group of images to be hidden, the ID of a DIV, etc.
What do y'all use to pass data from elements that aren't links, like a DIV? I usually use a hidden input as the first or last child, but I'm wondering you guys use.
Thanks!
-
-
The ID, class, and/or title attributes would come handy.
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks