Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Keep CSS display: none content out of page source with JS?

    I know that when you "display: none" with CSS it will not show the div content in the browser, but will still show the div and content in page source.

    Is there a way (via javascript or anything else) to also remove the content from page source at the same time?

    Thanks.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    This is a cross-post. The original thread is at http://codingforums.com/showthread.php?t=180221 . Please close this one here.


  •  

    Posting Permissions

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