I'm getting the inputs with the code var itensTabelaPresentation = ('#tabelaPresentarion > li');
and would like to go through them and go check if they have a certain class, how do I do 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>