# Page rendering and drop down onchange event

**URL:** <https://www.ruby-forum.com/t/page-rendering-and-drop-down-onchange-event/175986>\
**Category:** Rails\
**Created:** [September 23, 2009, 11:54am UTC](https://www.ruby-forum.com/t/page-rendering-and-drop-down-onchange-event/175986 "2009-09-23T11:54:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![subashinikumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/0ea827/32.png) [@subashinikumar](https://www.ruby-forum.com/u/subashinikumar)\
**Post date:** [September 23, 2009, 11:54am UTC](https://www.ruby-forum.com/t/page-rendering-and-drop-down-onchange-event/175986/1 "2009-09-23T11:54:15Z")

</div>

hi,

I want to display a subject drop down list and when i select some option  
from  
the drop down list i want to display all the questions under that  
selected  
category in the “SAME PAGE” and also get a form to add new questions in  
the same page.

eg …

\<%= collection\_select(:question,:subject\_id ,@subject, :id, :name) %\>

when i choose a subject i should, display all the questions under that  
subject in the same page and a text box to add new quesions too in the  
same page.I am new to rails.Can anyone please help me  
out…

Will page rendering partial help in any way?

Thanks in advance
