# How to handle change events of HTML controls using Rails Fra

**URL:** <https://www.ruby-forum.com/t/how-to-handle-change-events-of-html-controls-using-rails-fra/152662>\
**Category:** Rails\
**Created:** [November 6, 2008, 5:32am UTC](https://www.ruby-forum.com/t/how-to-handle-change-events-of-html-controls-using-rails-fra/152662 "2008-11-06T05:32:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narasimha\_prasad\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@Narasimha\_prasad\_D](https://www.ruby-forum.com/u/Narasimha_prasad_D)\
**Post date:** [November 6, 2008, 5:32am UTC](https://www.ruby-forum.com/t/how-to-handle-change-events-of-html-controls-using-rails-fra/152662/1 "2008-11-06T05:32:46Z")

</div>

Hi,

1. I require to populate dropdowns and textboxes based on the selection  
in one or the other dropdowns.  
I tried to create a dropdown ,radiobutton,checkbox.  
But I am not able to find the event handlers for the controls  
mentioned.  
(Like Onchange Event for dropdown list in .NET) .  
It will be of great help, if I get some solution.

2 Also I require help in embedding different views (Html) into a  
single main view with data from different tables (model) data.

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![Narasimha\_prasad\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@Narasimha\_prasad\_D](https://www.ruby-forum.com/u/Narasimha_prasad_D)\
**Post date:** [November 8, 2008, 10:24am UTC](https://www.ruby-forum.com/t/how-to-handle-change-events-of-html-controls-using-rails-fra/152662/2 "2008-11-08T10:24:37Z")

</div>

Hi,

1. You can easily do this with Prototype framework (http://  
[prototypejs.org/](http://prototypejs.org/)) which is distributed with Rails or with even  
standard javascript.
2. Not sure if I understand you but you might want to have look at  
partials ([Peak Obsession](http://api.rubyonrails.com/classes/ActionView/)  
Partials.html).

On 6 Lis, 05:32, Narasimha prasad Daruru \<rails-mailing-l…@andreas-
