Hi, I have a problem with rails time_select. I want to disable
time_select while page load.
<%= h.time_select dow + “_start_time”,{minute_step: 15, ampm: true},
{class: ‘test’, disabled: ‘’} %>
generated html is
12 AM 01 AM 02 AM 03 AM 04 AM 05 AM 06 AM 07 AM 08 AM 09 AM 10 AM 11 AM 12 PM 01 PM 02 PM 03 PM 04 PM 05 PM 06 PM 07 PM 08 PM 09 PM 10 PM 11 PMThe above erb code generates ‘class’ attribute. ‘disabled’ attribute is
not being created.
Can you help
Thanks,
Aashish