【发布时间】:2014-11-28 11:44:24
【问题描述】:
我在我的 rails 应用程序中使用 jquery Datatable 的表格插件,如果发生某些操作,我会寻找一种方法来删除整个列,例如如果单击了按钮。
桌子:
<table id="words" class="display" data-source="<%= url_for controller:"words", action: "index", :format=>:json %>" >
<thead>
<tr>
<th><%= l(:name) %></th>
.
.
.
</tr>
</thead>
<tbody>
</tbody>
</table>
我该怎么做?
【问题讨论】:
-
你尝试了什么?应用于 TD 的第 n 个子选择器可以解决问题。
标签: javascript jquery ruby-on-rails html-table jquery-datatables