Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Link IDs on Page

 
Steve Dyke
Ranch Hand
Posts: 1629
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will it cause any problems to have more than one hyperlink with the same ID?
I am using a record sequence index number and assigning this to two link ids. Then this id is used as a parameter for a js function.

One link is used to update record in table row and the second link is used to delete record in table row.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64973
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All id values on a page must be unique.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Uniqueness is kind of the point of an ID--why would you want them to be the same? If your only purpose is to use the ID as a parameter... why not just use the ID as a parameter, and not an ID?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic