commit
60d2e2f2a2
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ So here we cover them mainly for completeness, while you can still find them in
|
|||
|
||||
- `elem.getElementsByTagName(tag)` looks for elements with the given tag and returns the collection of them. The `tag` parameter can also be a star `"*"` for "any tags".
|
||||
- `elem.getElementsByClassName(className)` returns elements that have the given CSS class.
|
||||
- `document.getElementsByName(name)` returns elements with the given `name` attribute, document-wide. very rarely used.
|
||||
- `document.getElementsByName(name)` returns elements with the given `name` attribute, document-wide. Very rarely used.
|
||||
|
||||
For instance:
|
||||
```js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue