Can some one tell me, Why tag a make my first click without opening the table, but take the address which should go (in first moment table is hidden) 
And after second click, table is opening and I'm going to it. Without tag <a href="#[email protected]"> it open by 1 click.
#team-**@team.Id** - it's normal, i did 15 tables by cycle, and make for each table id)
My code in view
<div id=team-logo-wrapper>
<ul>
@foreach (Team team in Model.Item2)
{
<li>
<div class="team-section-box">
<p class="team-name">@team.Name</p>
<a href="#[email protected]">
<img src="@Url.Content(string.Format("~/Images/NBAlogoImg/{0}", team.Path))" class="logo-images" alt="Логотип @team.Name" title="Логотип @team.Name" onclick="ShowTable(@team.Id)" />
</a>
</div>
</li>
}
</ul>
in CSS my display and visibility
.table-hidden {
margin-top: 50px;
display: none;
visibility: hidden;
}
the simplest script
var flag = true;
function ShowTable(teamId) {
var id = "team-" + teamId;
var getElem = document.getElementById(id);
if (flag) {
flag = false;
getElem.style.display = 'none';
getElem.style.visibility = 'hidden';
}
else {
flag = true;
getElem.style.display = 'block';
getElem.style.visibility = 'visible';
}
}