I don't quite understand what you're trying to achieve?
1) Are you hiding the content with JS, and when a user disables JS that hiding doesn't work?
2) Or do you want to hide the content ONLY if the user has JS disabled? If so, why?
3) Something else?
If it's 1), then you could check server side (using PHP or any other server side language) to show or not show any content you want in any given circumstance.
If it's 2), then you can't do anything server side, because the server can't know if the client has JS enabled or not.