# How to combine a text box and select box in rails

**URL:** <https://www.ruby-forum.com/t/how-to-combine-a-text-box-and-select-box-in-rails/115185>\
**Category:** Rails\
**Created:** [September 21, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/how-to-combine-a-text-box-and-select-box-in-rails/115185 "2007-09-21T13:04:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [September 21, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/how-to-combine-a-text-box-and-select-box-in-rails/115185/1 "2007-09-21T13:04:11Z")

</div>

Hi folks,

Is there any way to combine a text and a select box like combo box.

Regards,  
Veeraa.T

---

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [September 21, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/how-to-combine-a-text-box-and-select-box-in-rails/115185/2 "2007-09-21T13:22:36Z")

</div>

Veera S. wrote:

> Hi folks,
> 
> Is there any way to combine a text and a select box like combo box.
> 
> Regards,  
> Veeraa.T

Not in HTML, the nearest you’ll get is to do a text-box and add an ajax  
autocomplete. There’s a function to do this in Rails - I think its  
depreciated now but it still works if you want to look it up:

text\_field\_with\_auto\_complete

Cheers  
Luke
