how to change the name attribute of a p
|
| View previous topic :: View next topic |
| Author |
Message |
PaulKolin
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 ? |
| |
|
|
|
|
AmeliaR
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. |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| Yes, i need a group identifier |
| |
|
|
AmeliaR
Joined: 31 May 2006 Posts: 142
|
| `js class # and this aids in maintaining multiple classes |
| |
|
|
Lusis Backwood JR
Joined: 26 May 2006 Posts: 87 Location: United States
| |
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| Thanks |
| |
|
|
|
|