第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

jquery datatable 使用表單編輯表行數(shù)據(jù)

jquery datatable 使用表單編輯表行數(shù)據(jù)

慕工程0101907 2021-06-28 08:59:16
var tb = $('#example').DataTable();$('#addRow').on('click', function() {  var typeName = $("#type option:selected").val();  var amount = $("#amount").val();  tb.row.add([typeName, amount]).draw();});<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script><script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script><label>Type</label><select id="type">  <option> Type 01</option>  <option> Type 02</option></select><label>Amount</label><input type="text" id="amount" /><button id="addRow"> Add </button><table id="example" class="display" cellspacing="0" width="100%">  <thead>    <tr>      <th>Type</th>      <th>Amount</th>    </tr>  </thead></table>我需要為每一行附加編輯和刪除按鈕。單擊編輯按鈕時,行數(shù)據(jù)應(yīng)加載到下拉列表和文本框。你能指導(dǎo)我這樣做嗎?
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 336 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號