JSFiddle - React, Tailwind, and code Playground
by simevidas
HTML
Use TAB and SHIFT+TAB to navigate to the control. Use ENTER to activate the control. <br><br>
<a href="#"> Add user </a>
<span> Add user </span>
<a href="#"> Add user </a>
<span> Add user </span>
<a href="#"> Add user </a>
<span> Add user </span>
CSS
a, span {
text-decoration:none;
color:black;
background:#eee;
margin:0 5px;
}
JavaScript
$('a, span').click(function() {
alert('You\'ve added a user!');
return false;
});