# Re: selectbox issues

**URL:** <https://www.ruby-forum.com/t/re-selectbox-issues/107955>\
**Category:** Rails\
**Created:** [June 27, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/re-selectbox-issues/107955 "2007-06-27T20:48:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Bradley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f0a364/32.png) [@Jonathan\_Bradley](https://www.ruby-forum.com/u/Jonathan_Bradley)\
**Post date:** [June 27, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/re-selectbox-issues/107955/1 "2007-06-27T20:48:43Z")

</div>

Ok I’m working on a select statement right now but, I’m having issues  
rendering certain aspects

Here is the code from my view:

%label#disabled\_area{:onclick =\> “$(‘disabled\_button’).hide();  
$(!=0).disable(); $(‘submit’).show();”}

= select :video, :comedy\_type, {“Select A Comedy Category” =\> “”,  
“Stand-Up Comedy” =\> “1”, “Sketch Comedy” =\> “2”}

%input{:type =\> “image”, :id =\> “disabled\_button”, :alt =\> “Submit your  
video!”, :src =\>  
“/images/#{current\_contest.short\_name}/bt-complete\_upload.gif”,  
:disabled =\>  
true}

%input{:type =\> “image”, :id =\> “submit”, :alt =\> “Submit your video!”,  
:src  
=\> “/images/#{current\_contest.short\_name}/bt-complete\_upload-up.gif”,  
:style  
=\> “display: none;”}

Here is the problems:

1. Select A Comedy Category will not show as the first option

2. I need to either disable or show a button dependent on selecting an  
item.  
That is becoming problematic as well.

Any ideas are definitely appreciated
