How to add special attributes (like aria-label
) into an input field tag function in a Rails view?
I tried these, but they did not work:
<%= radio_button_tag :name, "Name", aria: { label: 'Name' } %>
<%= radio_button_tag :name, "Name", 'aria-label' => 'Name' %>
Thanks in advance. I am using Rails 3.2.22.
Aucun commentaire:
Enregistrer un commentaire