[thelist] Need some JS help - unobtrusive popup - based on CLASS not id.

Chris Price chris.price at choctaw.co.uk
Fri Jun 15 12:00:19 CDT 2007


Jon Hughes wrote:
> The HTML is like so:
>
> <div id="content">
> <div class="detpopupcont" style="visibility:hidden">This is hidden with
> no javascript</div>
> <div class="detpopupcont" style="visibility:hidden">This is hidden with
> no javascript</div>
> <div class="detpopupcont" style="visibility:hidden">This is hidden with
> no javascript</div>
> </div>
>   
Are all the divs within #content of class 'detpopupcont' and are you 
actually going to have inline styles?

You can target the class attributes with getAttribute('class') on the 
children of #content and then change the style of the divs.

Kind Regards
-- 
Chris Price

Choctaw

chris.price at choctaw.co.uk
http://www.choctaw.co.uk

Tel. 01524 825 245
Mob. 0777 451 4488

Beauty is in the Eye of the Beholder
while Excellence is in the Hand of the Professional

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-+- Sent on behalf of Choctaw Media Ltd -+-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Choctaw Media Limited is a company
registered in England and Wales
with company number 04627649

Registered Office:
Lonsdale Partners,
Priory Close,
St Mary's Gate,
Lancaster LA1 1XB
United Kingdom





More information about the thelist mailing list