# Combo Box without Submit button

**URL:** <https://www.ruby-forum.com/t/combo-box-without-submit-button/118598>\
**Category:** Rails\
**Created:** [October 29, 2007, 11:10am UTC](https://www.ruby-forum.com/t/combo-box-without-submit-button/118598 "2007-10-29T11:10:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [October 29, 2007, 11:10am UTC](https://www.ruby-forum.com/t/combo-box-without-submit-button/118598/1 "2007-10-29T11:10:13Z")

</div>

I have a combo box with values and a Submit button to send those values  
to server. Ajax based.  
But I have seen on some sites that those people don’t have Submit  
buttons, just select a value from drop down and as you click it, it  
starts processing as it does after pressing Submit button, but there  
without Submit button of course.

Any idea how to implement that?

Thanks

---

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [October 29, 2007, 11:14am UTC](https://www.ruby-forum.com/t/combo-box-without-submit-button/118598/2 "2007-10-29T11:14:38Z")

</div>

On 29 Oct 2007, at 10:10, Vapor … wrote:

> I have a combo box with values and a Submit button to send those  
> values  
> to server. Ajax based.  
> But I have seen on some sites that those people don’t have Submit  
> buttons, just select a value from drop down and as you click it, it  
> starts processing as it does after pressing Submit button, but there  
> without Submit button of course.

Stick an onchange handler on the combo box?

Fred

---

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [October 29, 2007, 11:39am UTC](https://www.ruby-forum.com/t/combo-box-without-submit-button/118598/3 "2007-10-29T11:39:10Z")

</div>

Frederick C. wrote:

> Stick an onchange handler on the combo box?
> 
> Fred

No idea about that…could you please describe a little?

---

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [October 29, 2007, 11:58am UTC](https://www.ruby-forum.com/t/combo-box-without-submit-button/118598/4 "2007-10-29T11:58:33Z")

</div>

On 29 Oct 2007, at 10:39, Vapor … wrote:

> Frederick C. wrote:
> 
> > Stick an onchange handler on the combo box?
> > 
> > Fred
> 
> No idea about that…could you please describe a little?

Well at a basic level for most input elements, the onchange attribute  
is a chunk of javascript that is called when the input element is  
changed.  
The documentation for remote\_function gives an example of this.

Fred
