2017-12-28 33 views
0

私はjQuery Tableditを使用していますが、入力ボックスとドロップ・ドロップを使用するオプションがありますが、今のように1回のドロップダウンで複数の選択が必要です。jQuery Tabledit with multiselectドロップダウン

誰かがそれに関する解決策を持っている場合は、私たちを助けてください。ヘルプは非常に感謝しています。

+0

、これはあなたが期待するものであることを確認していません。 – Subash

答えて

0

私は、彼らはまだ問題としてこれを持って

$(function() { 

    var $table = $('table'); 
    $table 
    .Tabledit({ 
     columns: { 
     identifier: [0, 'id'], 
     hideIdentifier: true, 
     editable: [ 
      [1, 'App Date'], 
      [2, 'App Time'], 
      [3, 'Service Type', '{"1": "@mdo", "2": "@fat", "3": "@twitter", "4": "@university"}',] 
     ] 
     } 
    }) 
    .on('click', 'button:not(.tabledit-save-button)', function() { 
     // prevent sorting while editing 
     $table[0].isUpdating = $(this).closest('td').hasClass('tabledit-edit-mode'); 
    }) 
    .find('select[name="Service Type"]').attr('multiple', 'multiple') 
    .on('click', 'button.tabledit-save-button', function() { 
     // update tablesorter cache 
     $table.trigger('update'); 
    }) 
}); 

JSFIDDLE

関連する問題