JSFiddle - React, Tailwind, and code Playground
by xxxwww
HTML
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<a id="team-info-1">Team 1</a>
<a id="team-info-2">Team 2</a>
JavaScript
var $teamInfoPrefix = 'team-info-';
$('[id^='+$teamInfoPrefix+']').on('click', (e) => {
var teamId = e.toElement.id.replace($teamInfoPrefix, '');
alert('Load info about '+ teamId +' team');
})