# How to create dropdown box location

**URL:** <https://www.ruby-forum.com/t/how-to-create-dropdown-box-location/147053>\
**Category:** Rails\
**Created:** [August 28, 2008, 12:49am UTC](https://www.ruby-forum.com/t/how-to-create-dropdown-box-location/147053 "2008-08-28T00:49:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcampbell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Post date:** [August 28, 2008, 12:49am UTC](https://www.ruby-forum.com/t/how-to-create-dropdown-box-location/147053/1 "2008-08-28T00:49:50Z")

</div>

how to create dropdown box then linking to new page that display its  
location? it seems hard 4 me(beginner). Please help me

Thanx

---

<div class="post-metadata">

**Author:** ![mcampbell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Post date:** [August 28, 2008, 2:20am UTC](https://www.ruby-forum.com/t/how-to-create-dropdown-box-location/147053/2 "2008-08-28T02:20:21Z")

</div>

Something like this:

 \<%= select("model","field",['abc','pqr','xyz'].collect{|m|[m]}, options={},{:onchange =\>"$('form\_id').submit()"}) -%\> 

Found here [http://railsforum.com/viewtopic.php?id=10448](http://railsforum.com/viewtopic.php?id=10448)

---

<div class="post-metadata">

**Author:** ![mcampbell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Post date:** [August 28, 2008, 2:51am UTC](https://www.ruby-forum.com/t/how-to-create-dropdown-box-location/147053/3 "2008-08-28T02:51:43Z")

</div>

heimdull wrote:

> Something like this:
> 
> \<%= select("model","field",['abc','pqr','xyz'].collect{|m|[m]}, options={},{:onchange =\>"$('form\_id').submit()"}) -%\> 
> 
> Found here [http://railsforum.com/viewtopic.php?id=10448](http://railsforum.com/viewtopic.php?id=10448)

could please be specific, im sorry  
for example location lists are sydney,mackay,darwin  
how can u put it?

Appreciated ur helps
