2015-02-11 36 views
0

在jquery mobile v 1.4.5中动态添加带有列toogle选项的表格行。最初通过点击列来添加动态行,这会在UI中隐藏选定的行,但是会检查切换弹出式元素。表列切换用户界面不刷新

<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> 

看到这个FIDDLE首先单击列按钮启用fouth和第五列,现在点击添加行按钮,第四和第五行从UI隐藏,但再次单击科拉姆弹出第四和第五列被检查。

(第四和第五栏被隐藏,因为表的刷新,但如果去掉刷新那么的toogle是不工作的动态行)

回答