[Javascript] Show and hide multiple div tags

Abyss - Information Info at Abyss.ws
Tue May 9 01:52:24 CDT 2006


Perhaps - would it be best to put in an ID for each news item?

eg


<div class="News">
    <div id="NewsItem">
        <h2>News title 1</h2>
        <div class="BriefDescription"></div>
        <div class="ShowExtendedDescription"><a href="#" onclick="jsfncShowHideExtendedDescription('NI1234')">Show Extended Description for this event</a></div>
        <div id="NI1234" class="ExtendedDescription"></div>
    </div>

if so how would I pass the news item to the function? like i have in this example? as a string?

and how would i tell the browser to change the class for that particular div?

Thanks

Regards
Abyss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060509/8c37197d/attachment.htm>


More information about the Javascript mailing list