Hi, I'm wondering if there's an option where I can get a class for an active link for a statement like this.
<?php foreach (getListOptions("preguntas_frecuentes", "categoria") as $value => $label):?>
<li> <a data-toggle="tab" href="#tab-<?php echo $value;?>"> <?php echo $label;?> </a> </li>
<?php endforeach ?>
I need to have an active tab inside my for statement... that means just one of my categories will have the active class, like this:
<li class="active"> <a data-toggle="tab" href="#tab-<?php echo $value;?>"> <?php echo $label;?> </a> </li>
The final html code should look like this:
<li> <a data-toggle="tab" href="#tab-Generales"> Generales </a> </li>
<li class="active"> <a data-toggle="tab" href="#tab-Servicios"> Servicios </a> </li>
<li> <a data-toggle="tab" href="#tab-Nutrición"> Nutrición </a> </li>
Thanks!