I tried to add tabindex to link to tag in my Ruby application. It's not working. How to add. I am not getting any syntax error. But on clicking tab, it is not focused. I cannot use div tag.
<%= link_to xxx ,: tabindex =>1 %>
I tried to add tabindex to link to tag in my Ruby application. It's not working. How to add. I am not getting any syntax error. But on clicking tab, it is not focused. I cannot use div tag.
<%= link_to xxx ,: tabindex =>1 %>
Looks like your syntax is wrong
<%= link_to 'link text', '/link/url', tab_index: '3' %>
from... https://apidock.com/rails/ActionView/Helpers/UrlHelper/link_to