我有一个具有以下结构的选项卡菜单,单击该菜单将向li元素添加一个活动类现在我需要分别计算每个选项卡的单击次数,更重要的是将其保存(插入)到数据库请提供一个示例帮助我如何实现它?
<div class="tabs-shortcode tabs-wrapper container-wrapper tabs-vertical">
<ul class="tabs">
<li class="active">
<a href="#tab-content-1"><img src="2019/08/medal.png" alt=""> Tab One</a>
</li>
<li class="">
<a href="#tab-content-2"><img src="2020/07/maths.png" alt=""> Tab Two</a>
</li>
<li class="">
<a href="#tab-content-3"><img src="2020/07/loan.png" alt="">Tab Three</a>
</li>
</ul>
<div class="tab-content is-not-active" id="tab-content-1" style="min-height: 1311px; display: block;">
<div class="tab-content-wrap tie-animate-slideInUp">Content is Here</div>
</div>
<div class="tab-content is-not-active" id="tab-content-2" style="min-height: 1311px; display: none;">
<div class="tab-content-wrap tie-animate-slideInUp">Content is Here</div>
</div>
<div class="tab-content is-not-active" id="tab-content-3" style="min-height: 1311px; display: none;">
<div class="tab-content-wrap tie-animate-slideInUp">Content is Here</div>
</div>
</div>
BR公司