1
是否有可能在jquery mobile中动态更改data-priority
。这就是改变数据优先顺序取决于用户的选择。在jquery mobile中动态更改表数据优先级
<table id="tab" data-role="table" data-mode="columntoggle" class="ui-responsive">
<thead id="th">
<tr id="tr1">
<th>First</th>
<th data-priority="1">Second</th>
<th data-priority="2">third</th>
<th data-priority="3">Fourth</th>
</tr>
</thead>
</table>
在上表user1
需要remove the data-priority for third row.
User2
要remove the data-priority for fourth row
。那可能吗。
谢谢你真的好一个..如果我想改变数据优先级(这是已经assingned 5需要改变1)不能改变..看到这个小提琴http://jsfiddle.net/10x1xy8o/3/ – Vini 2015-02-13 05:27:46
我也试过这个'$ (“#col5th”)。addClass(“ui-table-cell-hidden”);'但该类不会添加到该字段中。 – Vini 2015-02-13 05:29:24
@A nu,您需要删除优先级以及更改数据优先级属性:http://jsfiddle.net/ezanker/10x1xy8o/4/ – ezanker 2015-02-13 15:08:19