Thanks Steve. I will apply this to the <td> Brian Knott Ph: 07 313 52618 | Ext: 52618 | Mob: 0404 319078
From: cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] On Behalf Of Steve Onnis Sent: Wednesday, 6 October 2010 11:06 AM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Hiding table rows Even though that may work, the TR tag is not a block element and setting the display style on the TR tag is actually invalid. You should be setting it on the child TD elements From: Cassie Woolley [mailto:cas...@bluerocksoftware.com] Sent: Wednesday, 6 October 2010 12:01 PM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Hiding table rows You can set an ID on the row and use it. Outlook has messed up my quotes below with smart quotes but you should get the idea. So use <tr id="hiderow"> function clickLink() { myRow = document.getElementById('hiderow'); if(myRow.style.display == "") { myRow.style.display = "none"; } else { myRow.style.display = ""; } } From: cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] On Behalf Of KNOTT, Brian Sent: Wednesday, 6 October 2010 10:52 AM To: 'cfaussie@googlegroups.com' Subject: [cfaussie] Hiding table rows Guys looking at hiding and showing table rows via a link. Some basic (untested) code below. <table> <tr> <td><a href="#">click here to hide/show</a></td> </tr> <tr class="hiderow"> <td>this row needs to show once the above is clicked</td> </tr> </table> Css file .hiderow { Display:none; } .showrow { Display:Block; } The row is hidden when the page is loaded because of the style applied. I don't know how to reference the row in the table via CSS. I also know that I need to be able to click he link to hide the row also, so I think I will need to JavaScript to toggle the state. Does anyone have some easy to understand code for this. Brian Knott | Budget and Forecast Specialist<http://search.ourspace.int.corp.sun:80/PeopleResults.aspx?k=JobTitle:%22Budgets%20and%20Forecasts%20Specialist%20EP%22> | Group Budget, Planning & Forecasting | Group Finance | Suncorp Ph: 07 313 52618 | Ext: 52618 | Mob: 0404 319078 GPO Box 1453 Brisbane QLD 4001 | Level 29, Brisbane Square, 266 George St brian.kn...@suncorp.com.au<mailto:brian.kn...@suncorp.com.au> ________________________________ This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its related entities "Suncorp". Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 55 or at suncorp.com.au. The content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments from your system. If this e-mail constitutes a commercial message of a type that you no longer wish to receive please reply to this e-mail by typing Unsubscribe in the subject line. -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaus...@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaus...@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. ======= Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16010) http://www.pctools.com<http://www.pctools.com/?cclick=EmailFooterClean_51> ======= ======= Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16010) http://www.pctools.com<http://www.pctools.com/?cclick=EmailFooterClean_51> ======= -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaus...@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaus...@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.