how to change the name attribute of a p
|
| View previous topic :: View next topic |
| Author |
Message |
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
|
If i have a external JS file, and i need to change the name attribute of a <.p> , can u just getElementById from the document... and then do element.name = "" to change its name ?
Reply with quote
|
| |
|
|
AmeliaR Enthusiastic Coder
Joined: 31 May 2006 Posts: 142
|
PaulKolin, Paragraphs can't have name attributes, and they serve little purpose.
If you need a unique identifier, use an id. They you can use gEBI. If you need a grouping identifier, use one or more classes.
Reply with quote
|
| |
|
|
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
| |
AmeliaR Enthusiastic Coder
Joined: 31 May 2006 Posts: 142
| |
Lusis Backwood JR Enthusiastic Coder
Joined: 26 May 2006 Posts: 87 Location: United States
| |
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
| |
|