Hi, On Mon, Aug 23, 2010 at 10:02 AM, Pale Horse <li...@ruby-forum.com> wrote: > Bill Walton wrote: >> Hi, >> >> On Mon, Aug 23, 2010 at 8:38 AM, Pale Horse <li...@ruby-forum.com> >> wrote: >>> There is an image to correspond with this. The image is not a problem; I >>> have gotten this image to change on click with 'link_to_function'. >>> >>> The information above, excluding the image of course, also needs to >>> change on click. >> >> If you know at the time of rendering the initial display what >> information needs to be displayed when the link is clicked, then you >> should probably render both sets of info inside two <div>s: one with >> style="display:block" and the other with style="display:none". Then >> your link_to_function can simply toggle the display settings. > > I know what information needs to be displayed when the user clicks the > tab with the name on it. There are 4 tabs and therefore 4 pieces of > information that all use the same class. I'm trying to use a toggle > feature but it doesn't seem to be working.
'not working' isn't much to go on in terms of providing additional help. Post some code; both the html.erb and the js function and maybe we can say more. Best regards, Bill -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.