Hi Guys,
I've found a few scripts to hide a div when a button is clicked, but these aren't quite what I'm looking for.
I'm using adobe contribute to update my site and therefore I need to have a downloads box (a simple div with just a non-breaking space character in). What I'd like to happen is to have this on every page by default and have a little script test it. If the box has a non-breaking space in, hide it, if it has anything else in, show it.
This way if there isn't a download on the page in question, the box doesn't get shown. If there is one, it does..
Cheers,
Tom
I've found a few scripts to hide a div when a button is clicked, but these aren't quite what I'm looking for.
I'm using adobe contribute to update my site and therefore I need to have a downloads box (a simple div with just a non-breaking space character in). What I'd like to happen is to have this on every page by default and have a little script test it. If the box has a non-breaking space in, hide it, if it has anything else in, show it.
This way if there isn't a download on the page in question, the box doesn't get shown. If there is one, it does..
Cheers,
Tom
Comment