jQuery - link to open a tab

0 votes
189 views
added Aug 14, 2018 in jQuery by LC Marshal Captain (25,790 points)
<!--link to open the tab-->
<a href="#" id="showUTA"><span class="text-right border-bottom-1">See All available unit</span></a>

<!--the tab element-->
<li>
	<a data-toggle="tab" href="#available-units" class="showUTA">Available Units<span id="unit-count"></span></a>
</li>

<script>
$('#showUTA').click(function(){
	$('.showUTA').trigger("click");
})
</script>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...