2👍
✅
You can bind the click event to the <table>
and get the deepest element from the event
to see which <td>
was clicked and what value is in there.
See this fiddle: https://jsfiddle.net/at0sdhsh/
Source:stackexchange.com