1//A Click on edit button will autofill an input box with the associate table data
2document.querySelector('.editButt').addEventListener('click', function(e) {
3let tblData = e.target.previousElementSibling;
4document.querySelector('#input_box').value = tblData.innerText;
5}
1document.querySelector('.editButt').addEventListener('click', function(e) {
2let tblData = e.target.previousElementSibling;
3document.querySelector('#input_box').value = tblData.innerText;
4}