Dark Ambient wrote:
> Is it possible to hide a few divs and show one all in one call ?
>
> <a href="#" onclick="Element.hide('canbackground','canposition',
>                                          'canskill')", 
> Element.show('basicinfo');
> well I had something like this but it was working very screwey.
That should work. 
The need to hide and show elements like that is very common for me, and 
I actually do it with a function:

function showHide(showElements,hideElements) {
  showElements.each(Element.show);
  hideElements.each(Element.hide);
}

<a href="#" onclick="
showHide(['canbackground','canposition','canskill'],['basicinfo'])
">


--~--~---------~--~----~------------~-------~--~----~
 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