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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Nicolás Sanguinetti
2007-Nov-20 14:02 UTC
Re: Effect.toglle() - element invisible by default
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 <metzeltiger-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---