Link to home
Start Free TrialLog in
Avatar of hollywood_noel
hollywood_noel

asked on

Reading and setting DIV tag attributes

Using Javascript, I'm trying to do the following -

1.  Read the ID and name attribute of a DIV tag
2.  Depending on the value of the DIV ID attribute, set the STYLE:visibility tag to either 'hidden' or 'visible'.

Here's the DIV tag I'm working with -

<DIV ID=23453 STYLE=visibility:visible; name=listingDIV>

What's the best way to go about accessing the values?

Noel
ASKER CERTIFIED SOLUTION
Avatar of bhagyesht
bhagyesht
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

hollywood_noel:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.