Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - link to open a tab

0 votes
75 views
added Aug 14, 2018 in jQuery by LC Marshal Captain (26,090 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>

 

Please log in or register to response this reference.

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