<script>
function show_custom_repeat(){
                // var val = $('event_template_freq').getVal();
                // switch(parseInt(val)){
                //      case 5:
                        $('custom_repeat').show();
                //      break;
        //      }
};
</script>

 Repeat: <%= select(:event_template, :freq, {:None => "0", :Daily =>
"1", :Weekly => "2", :Monthly => "3", :Yearly => "4", :custom =>
"5" }, {:selected => :None}) %>


<% observe_field("event_template_freq", :function =>
'show_custom_repeat') %>

<div id="custom_repeat" style="display: none;">

</div>


i use fire bug and no errors, i'm sure its just my syntax can anyone
help?
Ami
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to