データテーブル内のセル内のテキストを編集することは可能ですか?ユーザーがセルをダブルクリックすると、編集可能になります。セル内のテキストを編集する(jqueryデータテーブル)
ありがとうございました
データテーブル内のセル内のテキストを編集することは可能ですか?ユーザーがセルをダブルクリックすると、編集可能になります。セル内のテキストを編集する(jqueryデータテーブル)
ありがとうございました
これはあなたが探しているものですか?
http://jquery-datatables-editable.googlecode.com/svn/trunk/inline-edit.html
http://code.google.com/p/jquery-datatables-editable/
この情報がお役に立てば幸いです。
$(function(){
$('#mod').click(function(){
$('#text1').html('<input id="no" size="'+$(this).text().length+'" type="text" value="'+ $('#text1').text() + '">');
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<p id="text1"> Text Here </p>
<input type="button" id="mod" name="modify" value="modify" />