Forum: Ruby on Rails re: selectbox issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jonathan Bradley (Guest)
on 2007-06-27 22:48
(Received via mailing list)
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
This topic is locked and can not be replied to.