Hide table cell

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunil316
    New Member
    • Oct 2011
    • 2

    Hide table cell

    Code Snippet:
    Code:
    <div class="wsWidgets">
        <table class="outer" border="0" cellpadding="0" cellspacing="0" width="100%">
        	<tbody><tr>
        		<td id="wsLeftCol" valign="top" width="60%">
                    </td>
        		<td id="wsRightCol" valign="top" width="60%">
                    </td>
            </tbody>
        </table>
    </div>
    I want to hide "wsRightCol " div.
    Please help.

    Thanks,
    Sunil S.
    Last edited by Dormilich; Oct 25 '11, 05:52 PM. Reason: please use [CODE] [/CODE] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    there is no wsRightCol div, only a wsRightCol td. though you can set its visibility property to "hidden".

    Comment

    • sunil316
      New Member
      • Oct 2011
      • 2

      #3
      yes, i mean wsRightCol td only.
      But, I can not access that td by Id(getting null value), to make its visibility hidden or display as none.
      Can I access parent table which is not having Id?

      Thanks,
      Sunil

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        But, I can not access that td by Id(getting null value),
        that <td> has an id, hence you can access it via document.getEle mentById() (unless you have given out multiple identical ids, which is wrong in itself)

        Comment

        Working...