gpt4 book ai didi

css - disable_with 不能在表标签中工作?

转载 作者:行者123 更新时间:2023-11-28 13:03:58 24 4
gpt4 key购买 nike

这是我的表格

   <table>
<%= form_for Slot.new, :url => slots_path(@current_webclass), :validate => true, remote: true, :html => {:class => 'form-horizontal', id: 'slot-form', data: {type: "script", method: :post}} do |f| %>
<tr>
<td>
<%= f.text_field :title %>
</td>
<td>
<%= f.text_field :start_at, class: 'timepicker' %>
</td>
<td>
<%= f.text_field :start_at, class: 'timepicker' %>
</td>

<td>
<%= f.submit 'add', class: 'btn btn-success', disable_with: "process..." %>
</td>
</tr>
<% end %>
</table>

最佳答案

尝试将其用作符号 button_tag "Checkout", :disable_with => "Please wait..."

如果这不起作用尝试使用:

'btn btn-success', disable_with => "process..."} %>

关于css - disable_with 不能在表标签中工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15972862/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com