M
Marc
Hi to all,
I have several DIVs in a page, each has a unique name. I'd need a method to
cycle through all DIVs so that I can change their style. For example, let's
say I need to set a red background to DIVs whose name begins with "a". This
is the pseudo code:
For Each Div in The Page
If Div's name starts with 'a' then set Div's background to Red
Next
How can I translate this 'pseudocode' into real javascript code?
Thank you!
Marc
I have several DIVs in a page, each has a unique name. I'd need a method to
cycle through all DIVs so that I can change their style. For example, let's
say I need to set a red background to DIVs whose name begins with "a". This
is the pseudo code:
For Each Div in The Page
If Div's name starts with 'a' then set Div's background to Red
Next
How can I translate this 'pseudocode' into real javascript code?
Thank you!
Marc