web hosting and development forums
Web Design and Development Forums Archive


Index - JavaScript forum

how to change the name attribute of a p


Post reply

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 ?
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.
Yes, i need a group identifier
`js class # and this aids in maintaining multiple classes
Js class: http://phrogz.net/JS/AddClassKillClass_js.txt
Thanks




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com