# Best way to detect drop down changes

**URL:** <https://www.ruby-forum.com/t/best-way-to-detect-drop-down-changes/51541>\
**Category:** Rails\
**Created:** [January 2, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/best-way-to-detect-drop-down-changes/51541 "2006-01-02T20:13:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil\_swenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f17d59/32.png) [@phil\_swenson](https://www.ruby-forum.com/u/phil_swenson)\
**Post date:** [January 2, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/best-way-to-detect-drop-down-changes/51541/1 "2006-01-02T20:13:42Z")

</div>

So I want to have a form with a drop down that lists all our customers.  
And when a user selects a customer, I want it to automatically list the  
customer names emails below the drop down.

Anyone have any thoughts as the best approach to do this? I could just  
write javascript, but it seems like there would be a rails tag for this.

thanks,  
phil

---

<div class="post-metadata">

**Author:** ![phil\_swenson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f17d59/32.png) [@phil\_swenson](https://www.ruby-forum.com/u/phil_swenson)\
**Post date:** [January 4, 2006, 1:34am UTC](https://www.ruby-forum.com/t/best-way-to-detect-drop-down-changes/51541/2 "2006-01-04T01:34:42Z")

</div>

On 1/2/06, phil swenson [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> So I want to have a form with a drop down that lists all our customers.  
> And when a user selects a customer, I want it to automatically list the  
> customer names emails below the drop down.
> 
> Anyone have any thoughts as the best approach to do this? I could just  
> write javascript, but it seems like there would be a rails tag for this.

You need to use AJAX.

You might find this useful.

[http://www.roryhansen.ca/?p=9](http://www.roryhansen.ca/?p=9)

## Greg

Greg F.  
The Norcross Group  
Forensics for the 21st Century
