This is my code and i am trying to get values by onclick form a table cells dynamically.
let Table = document.querySelector('#recieve-info');
Table.addEventListener('click',(e)=>{
if(e.target && e.target.classList.contains('Save-Button')){
let tr = document.querySelector('tr');
console.log(tr.firstElementChild);
}
});
Here is the output in console.log i am getting only the first value of table cell