|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
getElementById() : how to select all ids?
there's any way to select all ids in a document without using arrays?
some like getElementById(all) ? :P thx any help |
|
#2
|
||||
|
||||
|
I don't think you can do that.
You caould give everything the same name, and use Code:
document.getElementsByName('name');
|
|
#3
|
||||
|
||||
|
or similarly, document.getElementsByTagName('DIV');
unless you require an array of IDs, I suggest you look towards an alternate logic. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > getElementById() : how to select all ids? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|