I’m a rails newbie.
I’ve got a link_to_remote that puts a partial render into a div
(“note1”, “note2”, etc.). As part of the display that comes up, I put
in a hide note link (element.toggle). Click that, the div goes away,
everything’s great… except now I can’t get it back.
How can I call the remote AND make the div show at the same time? I see
element.show, but I don’t know how to execute that without having the
user click on it. I looked at the API for update_element_function, but
that looks like I can change the content of the div, or it’s position,
but not hide/show it.