Good morning I want to get a value from this table when I click:
<table>
<th>2016</th>
<th>2017</th>
<th>2018</th>
<th>2019</th>
<th>2020</th>
</table>
With this function:
$("table").click(function(){
alert($(this).find("th").eq(1).html());
});
It does not work for me, I hope someone can tell me what I'm doing wrong.