I searched a lot and could not find the answer.
I need to assign a value to a variable in Jquery, I do not have much knowledge. What I need is:
When you click on a link:
<a href="?sts=Pendente" title="Avisos Pendentes" id="Pendente" data-statusTipo="Pendente">
A variable named sts1 has the id value above:
var sts1 = $('a').on(click (function() {
$('a:hover', this).data('statusTipo');
}));
That's it ... I tried everything and I could not ...
Thank you for your attention.