hide <td> value in html table?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    hide <td> value in html table?

    i want to hide a td value to the users. how to make hide the values in <td> of html table? i have tried width=0px, width="0%". but it doesnt works.
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    You are probably wanting something like this (Javascript):

    Code:
    <script language="JavaScript">
    	function toggleVisibility(me){
    		if (me.style.visibility=="hidden"){
    			me.style.visibility="visible";
    			}
    		else {
    			me.style.visibility="hidden";
    			}
    		}
    </script>
    [html]
    <div onclick="toggle Visibility(this )" style="position :relative">
    Some sample Text</div>
    <div>I don't move</div>
    [/html]
    Or if you want to use CSS:
    Code:
    visibility: hidden;

    Comment

    Working...