# AJAX select box dropdown update form

**URL:** <https://www.ruby-forum.com/t/ajax-select-box-dropdown-update-form/156557>\
**Category:** Rails\
**Created:** [December 30, 2008, 12:07am UTC](https://www.ruby-forum.com/t/ajax-select-box-dropdown-update-form/156557 "2008-12-30T00:07:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hangingclowns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Post date:** [December 30, 2008, 12:07am UTC](https://www.ruby-forum.com/t/ajax-select-box-dropdown-update-form/156557/1 "2008-12-30T00:07:09Z")

</div>

I have the following form with 2 selectbox drop downs:

SelectBox1

SelectBox2

WHen the user changes the selection in SelectBox1, I want SelectBox2 to  
be updated to contain a different set of  
options. I’m not sure exactly how to do this. If someone could point me  
in the right direction, I’d appreciate it.

Thanks

---

<div class="post-metadata">

**Author:** ![hangingclowns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Post date:** [December 30, 2008, 2:41am UTC](https://www.ruby-forum.com/t/ajax-select-box-dropdown-update-form/156557/2 "2008-12-30T02:41:07Z")

</div>

On Mon, Dec 29, 2008 at 6:07 PM, Allen W. \<  
removed\_email\_address@domain.invalid\> wrote:

> in the right direction, I’d appreciate it.  
> I followed the outline given at  
> [http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails](http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails) when  
> I  
> wanted to do this a couple of weeks ago.

–wpd
