Time_select is not disabled

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 PM

The above erb code generates ‘class’ attribute. ‘disabled’ attribute is
not being created.

Can you help

Thanks,
Aashish

Do you mind doing 2 things:

  1. add a value to ‘disabled’
  2. remove it

its confusing that you have ’ disabled: “” ’ as it means that out of the
options you dont want to disable any and you can achieve that by not
added
the ‘disabled’ attribute.

On Wed, Jun 29, 2016 at 11:30 AM, Aashish K. [email protected]