# Select

**URL:** <https://www.ruby-forum.com/t/select/72120>\
**Category:** Ruby\
**Created:** [October 14, 2006, 2:57pm UTC](https://www.ruby-forum.com/t/select/72120 "2006-10-14T14:57:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ad7895/32.png) [@pablo](https://www.ruby-forum.com/u/pablo)\
**Post date:** [October 14, 2006, 2:57pm UTC](https://www.ruby-forum.com/t/select/72120/1 "2006-10-14T14:57:26Z")

</div>

Hi

What would be the correct Ruby on Rails way of doing the following:

I want the user to be able to select from a drop down menu if s/he wants  
to pay with VISA, Master card, AMEX, Discovery, PayPal or Bank Wire.

If the user selects VISA, Master card, AMEX or Discovery a div will  
SlideDown to get the details. If the user selects PayPal another div  
will SlideDown with a link to PayPal. If the user chooses bank Wire a  
div will slide down with information (text).

I also want to include an image that will show the logo of selection  
(VISA logo, Master card logo) next to the drop down menu.

I am really new to Ruby on rails so I would really appreciate any help,  
I been googling but I didn’t find anything helpful.

Best regards,

Pablo

---

<div class="post-metadata">

**Author:** ![pablo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ad7895/32.png) [@pablo](https://www.ruby-forum.com/u/pablo)\
**Post date:** [October 14, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/select/72120/2 "2006-10-14T15:06:22Z")

</div>

Hello Pablo,

This sounds to me to be more of a DHTML/ DOM manipulation  
problem then something to be solved within rails. I’d  
recommend working with onChange events on your drop down,  
which would dynamically re-locate elements that you’re  
interested in and then make them visible setting  
element.style.dispalay = inline, or what ever is appropriate.

Or am I misunderstanding what you’re trying to accomplish?

Andy
