I would recommend using the excellent DataTables Editable plugin. The plugin makes it easy to edit fields directly in the table.
If you really want to have a button in each row, you can add it when you create a table column, or add it using jQuery. Then you will need to bind the action to the buttons.
Suppose you want to enter buttons, the code will look something like this:
$('#form-id').delegate('.edit-button', 'click', function() {
Sindre sorhus
source share