# Javascript/RJS question

**URL:** <https://www.ruby-forum.com/t/javascript-rjs-question/138826>\
**Category:** Rails\
**Created:** [May 28, 2008, 4:28am UTC](https://www.ruby-forum.com/t/javascript-rjs-question/138826 "2008-05-28T04:28:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jables](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/58956e/32.png) [@Jables](https://www.ruby-forum.com/u/Jables)\
**Post date:** [May 28, 2008, 4:28am UTC](https://www.ruby-forum.com/t/javascript-rjs-question/138826/1 "2008-05-28T04:28:30Z")

</div>

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
