# RE: Linking two HTML SELECT's together

**URL:** <https://www.ruby-forum.com/t/re-linking-two-html-selects-together/84295>\
**Category:** Rails\
**Created:** [March 20, 2006, 8:38pm UTC](https://www.ruby-forum.com/t/re-linking-two-html-selects-together/84295 "2006-03-20T20:38:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [March 20, 2006, 8:38pm UTC](https://www.ruby-forum.com/t/re-linking-two-html-selects-together/84295/1 "2006-03-20T20:38:08Z")

</div>

Look at observe\_field in the API.

Basically, you have a select box with your countries, an observe field  
that watches that select box and retrieves a new select box which is  
placed in a div that you specify. Really easy actually (and that’s why I  
love this framework!)

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [March 20, 2006, 9:20pm UTC](https://www.ruby-forum.com/t/re-linking-two-html-selects-together/84295/2 "2006-03-20T21:20:55Z")

</div>

Hogan, Brian P. wrote:

> Look at observe\_field in the API.
> 
> Basically, you have a select box with your countries, an observe field  
> that watches that select box and retrieves a new select box which is  
> placed in a div that you specify. Really easy actually (and that’s why I  
> love this framework!)

Brian and Jerrie, we are talking on this subject in the  
“Collection\_select’s linked” topic.

Brian, I tried to use observer\_fiel, but I am not obtaining to show to  
the list select\_tag of first select. How you are making?

Eleudson
