CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    201

    Javascript ignores my html sets.

    Derp.
    Last edited by realchamp; April 5th, 2012 at 12:07 PM.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Javascript ignores my html sets.

    That's because you are trying to make a <td> act as a block element when it is not.

    Code:
    function show(id) {
    	var e = document.getElementById(id);
    	e.style.display = (e.style.display == "none") ? "table-cell" : "none";
    }
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Feb 2009
    Posts
    201

    Re: Javascript ignores my html sets.

    Thanks it works perfectly
    Last edited by realchamp; August 23rd, 2010 at 08:02 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured