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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to haml-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
anyone got any ideas? On Jun 27, 2:47 pm, "Jonathan Bradley" <jonat...-/GIlNnT6J+gTR8g7N4ExuEEOCMrvLtNR@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---