Quote:
Originally Posted by ktelfon
but div tags dont have an id so i can change all of them but how do i change a specific one ?
|
If it is a specific one, what makes it
specific? Is it something which makes that div unique? You need
that to refer it.
DOM Elements can be referred:
- by their id
- by their name, in which case one of them can be refereed by its index within the collection. Anyway, not all the DOM elements are entitled to bear a name.
- by their tag name, in which case one of them can be refereed by its index within the collection
- by their class name, in which case one of them can be refereed by its index within the collection
- by their DOM relationship: parent, child, siblings.