I have a scenario with 3 bootstrap pills where I want to display data in pill 2 and pill 3, but not in pill 1. How can I achieve this without duplicating the data entry?
<ul class="nav nav-tabs">
<li><a data-toggle="tab" href="#pill1">Pill 1</a></li>
<li><a data-toggle="tab" href="#Pill2">Pill 2</a></li>
<li><a data-toggle="tab" href="#Pill3">Pill 3</a></li>
</ul>
<div class="tab-content">
<div id="pill1" class="tab-pane fade">
<h3>Pill 1</h3>
<p>Pill 1 data</p>
</div>
<div id="Pill2" class="tab-pane fade">
<h3>Pill 2</h3>
<p>Pill 2 data</p>
<p> THIS DATA SHOULD BE IN PILL 2 AND PILL 3 ONLY</p>
</div>
<div id="Pill3" class="tab-pane fade">
<h3>Pill 3</h3>
<p>Pill 3 data</p>
</div>
</div>