2015-02-11 95 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是不工作的動態行)

回答