You have to set "display: none" *inline* in the html.
<div id="toggable" style="display: none"> foo </div>
and then $("toggable").toggle();

Best,
-Nicolas

On Nov 20, 2007 11:57 AM, Dennis Schmidt <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> which css attributes do i have to set if i want any element to be
> invisible by default, when using Effect.toggle().
> I tried visibility and display, but they don't seem to work.
>
> Thanks in advance, Dennis
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to