Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Oh, the magic number 98345699 will save me! :) Yes it can, but I'm looking for something more elegant... Commented Nov 22, 2012 at 20:55
  • what do you expect as far as elegant goes? You need unique functionality... not likely able to make it pretty too Commented Nov 22, 2012 at 20:56
  • I just thought there is something I don't know about DOM and HTML4... Because the task is rather common and people should have a simple solution. Now I see there are only tricks like you proposed. Or I can move to HTML5... Commented Nov 22, 2012 at 21:00
  • Even using data attributes in html5 you would need to use same approach to name the attributes Commented Nov 22, 2012 at 21:02