Put span within f.submit

后端 未结 1 2074
天命终不由人
天命终不由人 2021-01-05 06:58

This may be simpe but cant seem to get it working. I have the following submit button

<%= f.submit \'Send Message\', class: \'btn submit\', id: \'validFor         


        
1条回答
  •  粉色の甜心
    2021-01-05 07:13

    Use button_tag and put the span within the button in that way

    <%= button_tag(type: 'submit', class: "btn submit", id: 'validForm') do %>
      Send Message
    <% end %>
    

    0 讨论(0)
提交回复
热议问题