[ale] More JavaScript

James Sumners james.sumners at gmail.com
Tue Apr 30 13:19:04 EDT 2013


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

http://stackoverflow.com/search?q=%5Bjavascript%5D+element+id+style

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
http://james.roomfullofmirrors.com/

"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



More information about the Ale mailing list