Javascript/RJS question

So,
I have a number of partials, each has a “expand story” button in
it. Each partial has the local variable “link” which contains the
content to be displayed in the partial (link.content). At the top I
have a button that says “expand all links”. What is the best way to
display the content on when clicking “expand story” and to display
every story when that button is pressed?

Thanks,
JB