Microsoft
Software
Hardware
Network
Question : toggle hide/show several similar css classes on web page
Hello Experts,
I am puzzled on this as I cannot find sample code to do what I need.
Here is the scenario:
I have a table of content, i.e.
<table>
<tr>
<td>
<p class="ySports">sports content </p>
<p class="noSports">non sports content</p>
<p class="noSports">non sports content </p>
<p class="ySports">sports content </p>
<p class="ySports"> sports content </p>
</td>
<td>
<p class="ySports">sports content </p>
<p class="noSports">non sports content</p>
<p class="noSports">non sports content </p>
<p class="ySports">sports content </p>
<p class="ySports"> sports content </p>
</td>
</tr>
</table>
I need to show both sports and non-sports content, only sports content, only non-sports content by using a script function using css classes to show or hide the respective content. I can find several examples toggling one block on content using the css id tag but since similar id tags can only be used once on a page I cannot have multiple ids with the same name. I need to use classes. (or some other method).
Thanks!
Answer : toggle hide/show several similar css classes on web page
sure, i have put it all in one page .. check attached file.
form.html
(1 KB)
(File Type Details)
html file with prototype usage
Random Solutions
My laptop hp pavilion dv9000 suddenly doesnt start
HP EVA MPIO from Windows 2008 R2
XP Pro SP3 on Dell Inspiron 9400 notebook with OCZ SSD: BSOD 0xF4 after resume from standby
I am looking forward to learn about JSF with ICEfaces
Blackberry Enterprise Server Express, MAPI subsystem error
Outlook not attack shortcut (lnk) attach directly the file
How can I improve the RHEL TCP performance
Droid Incredible Exchange Synchronization
Old address/mapping cached in Outlook clients
Can I write a script to generate another script