This isn’t Rails-specific, and I’m sorry for that, but I haven’t been
able to get a response in the #prototype/#javascript/#ror channels,
nor find anything via Google.
I have a form element that I want to be hidden when the page first
loads, and appear when a user clicks the link. Here’s the code:
In my CSS file I have
#signin-form {
display: none;
}
Now checking out
http://wiki.script.aculo.us/scriptaculous/show/Element.show, I’m
pretty sure that’s all I have to do. However if I click on the link,
the form doesn’t get shown. No JS errors. If I have the element
shown at the page start, I can hide/toggle it all I want. Just can’t
start off with display:none apparently. I’m using Firefox 1.5.01 and
the javascript files that were installed with “rake rails:update”.
Pat