I have a from that will require multiple dates and or times.
I am using the jquery datepicker that I have been using for a long
time.
I am doing this in a partial for multiple date/times:
<td><%= text_field_tag "mopdate[]",nil, :size => "14" %></td>
<td><%= text_field_tag "start_time[]",nil, :size => "14", :value =>
"00:01"%></td>
<td><%= text_field_tag "end_time[]",nil, :size => "14", :value =>
"05:00" %></td>
<td><%= text_field_tag "roll_back_time[]",nil, :size => "14", :value
=> "04:00" %></td>
I have this for the initialize method:
jQuery(document).ready(function($){
$('#mopdate[]').datepicker({ dateFormat: 'yy-mm-dd' });
$('#start_time[]').timePicker({step: 15, startTime: "00:01", endTime:
"05:00", columns: 5})
$('#end_time[]').timePicker({step: 15, startTime: "00:01", endTime:
"05:00", columns: 5})
$('#roll_back_time[]').timePicker({step: 15, startTime: "00:01",
endTime: "05:00", columns: 5})
});
None of em appear to work.
Is there a way to get something like this to work?
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---