# To Display save button , when we select an option from drop

**URL:** <https://www.ruby-forum.com/t/to-display-save-button-when-we-select-an-option-from-drop/189882>\
**Category:** Rails\
**Created:** [June 9, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/to-display-save-button-when-we-select-an-option-from-drop/189882 "2010-06-09T14:29:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venu1234](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/41988e/32.png) [@venu1234](https://www.ruby-forum.com/u/venu1234)\
**Post date:** [June 9, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/to-display-save-button-when-we-select-an-option-from-drop/189882/1 "2010-06-09T14:29:12Z")

</div>

Hi

I need help regarding displaying of a save button when we select some  
thing from the drop down.

---

<div class="post-metadata">

**Author:** ![venu1234](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/41988e/32.png) [@venu1234](https://www.ruby-forum.com/u/venu1234)\
**Post date:** [June 9, 2010, 6:20pm UTC](https://www.ruby-forum.com/t/to-display-save-button-when-we-select-an-option-from-drop/189882/2 "2010-06-09T18:20:44Z")

</div>

Venu Gopal wrote:

> Hi
> 
> I need help regarding displaying of a save button when we select some  
> thing from the drop down.

Hi,

Try using the following

\<%= select\_tag “name”, options\_for\_select([“Free”, “Basic”, “Advanced”,  
“Super Platinum”], “Free”), {:onchange =\> “call a javascript function  
that will show the save button”} %\>

Might Help.

Regards

Saurabh
