I have this HTML:
<div class="container">
<a href="#mylink" tabindex="-1">select this</a>
<a href="#mylink" tabindex="-1">select this</a>
<a href="#mylink" tabindex="-1">select this</a>
</div>
<a href="#begin" tabindex="-1">click here to begin selecting</a>
And I have this JS/jQuery snippet of code:
$('a[href="#begin"]').blur(function(e) {
console.log( e.target.href ); // this will output: #begin
});
So what I need with .blur
is to determine which element got focus after the <a href="#begin">
was blured.
Is this possible with JS/jQuery?