[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] More JavaScript
- Subject: [ale] More JavaScript
- From: james.sumners at gmail.com (James Sumners)
- Date: Tue, 30 Apr 2013 13:19:04 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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