I have selection like
<select>
    <option value=""
selected=''nil''></option>
    <option id="conv" >シフト表CSV出力l</option>
    <option value="template_of_roster1.xml"
id="tmp1">template_of_roster1.xml</option>
    <option value="template_of_roster2.xml"
id="tmp2">template_of_roster2.xml</option>
    <option value="template_of_roster3.xml"
id="tmp3">template_of_roster3.xml</option>
<input type="button" value="Converter"/>
and also one button.
I want to write a condition like
if I choose option id==tmp1
when I click the button,want to run converter
if I choose option  id ==conv
when I click the button,want to run demand_csv
I have one question more about button, is it possible to run two method
in onclick event?
like when I click button can I run converter also saving.?
thanks for any help
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---