I want to get each cell value from an HTML table using JavaScript when pressing submit button.
How to get HTML table cell values?
Make a javascript function
function addSampleTextInInputBox(message) { //set value in input box document.getElementById('textInput').value = message + ""; //or show an alert //window.alert(message); }
Then simply call in your table row button click