How can I convert tbody field to input in JavaScript?
<table id="tblStok" class="table table-bordered">
<thead>
<tr>
<th>ıd</th>
<th>RESİ</th>
<th>STOK</th>
<th>GRUP</th>
<th>aacıkla</th>
<th>fıyay</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script type="text/javascript">
$(document).on("click", ".btn-outline-warning", function () {
$.ajax({
type: "POST",
url: "/AnaMenu/GetStok",
data: '{GRUPID:"' + $(this).data('id') + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
$('#tblStok tbody').empty();
var rows = '';
$.each(r, function (yetkilistokozel, item) {
var ID = item.ID;
var RESİMYOL = item.RESİMYOL;
var STOKADI = item.STOKADI;
var GRUPADI = item.GRUPADI;
var ACIKLAMA = item.ACIKLAMA;
var FIYAT = item.FIYAT;
rows += "<tr><td> <input/>" + ID + "</td><td>" + RESİMYOL + "</td><td>" + STOKADI + "</td><td>" + GRUPADI + "</td><td>" + ACIKLAMA + "</td><td>" + FIYAT + "</td></tr>";
});
$('#tblStok tbody').append(rows);
},
error: function (r) {
alert(r.responseText);
}
});
});
</script>