JSFiddle - React, Tailwind, and code Playground
by Adam Mendoza
HTML
<a href="" accesskey="i">Link</a>
CSS
a {
text-decoration: none;
}
a span.access {
text-decoration: underline;
}
JavaScript
$('a[accesskey]').each(
function(){
var aKey = $(this).attr('accesskey');
var text = $(this).text();
var newHTML = text.replace(aKey,'<span class="access">' + aKey + '</span>');
$(this).html(newHTML);
});