Failed to get td value by attribute jQuery
$(document).on("click", ".add", function() { // get the current row var currentRow = $(this).closest("tr"); var col1 = currentRow.find("td:eq(0)").text(); // get current row 1st table cell TD value var col2 = currentRow.find("td:eq(1)").text(); // get current row 2nd table cell TD value var…