JSFiddle - React, Tailwind, and code Playground
by Tamil
HTML
<table class="table" id="tableCompleted">
<thead>
<tr>
<th>Name</th>
<th>A</th>
<th>B</th>
<th>C</th>
<th>D</th>
<th>EDIT</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Yes</td>
<td>Yes</td>
<td>No</td>
<td>No</td>
<td><button id="update">
Click Here TO EDIT
</button></td>
</tr>
</tbody>
</table>
JavaScript
$('#update').on('click', function() {
var $this = $(this).row();
var $input = $('<input>', {
value: $this.text(),
type: 'text',
blur: function() {
$this.text(this.value);
},
keyup: function(e) {
if (e.which === 13) $input.blur();
}
}).appendTo( $this.empty() ).focus();
});