1
I’m picking up the inputs with the code var itensTabelaPresentation = ('#tabelaPresentarion > li');
and would like to walk through them and go checking if they have certain class, how do I accomplish this in a foreach?
<ul class="nav nav-tabs" id="tabelaPresentarion">
<li role="presentation" id="tabGeral" class="active"><a href="#">Geral</a></li>
<li role="presentation" id="tabAuditoria" ><a href="#">Audiroria</a></li>
</ul>
<script>
jQuery(document).ready(function () {
var tabGeral = $('#tabGeral');
var tabAuditoria = $('#tabAuditoria');
var painelGeral = $('#painelGeral');
var painelAuditoria = $('#painelAuditoria');
var itensTabelaPresentation = ('#tabelaPresentarion > li');
tabGeral.click(function () {
painelGeral.show();
painelAuditoria.hide();
for (var i = 0; i <= itensTabelaPresentation.length; i++) {
}
});
tabAuditoria.click(function () {
painelGeral.hide();
painelAuditoria.show();
});
});
</script>
What input are you talking about?
– Lucas de Carvalho
I’m getting the list actually, ul > li .. I’ll edit
– Nicola Bogar