[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] More JavaScript

Since you can't seem to provide snippets with your questions...


On Tue, Apr 30, 2013 at 1:09 PM, Geoffrey Myers
<lists at serioustechnology.com> wrote:
> Using JavaScript to toggle the style.display between 'block' and 'none'. Stashing the span I'd and current state of that elements style.display in a cookie. Problem is, when I retrieve the cookie and attempt to set the style.display value the id is not recognized as an id. I've tried:
> arg.style.display
> Where arg contains the span id value pulled from the cookie.
> Suggestions?

James Sumners

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59