$(document).ready(function(){
//Chama o evento após selecionar um valor
$('#DropEmpregados').on('change', function() {
//Verifica a numeração do select no dropdown
if ( this.value == '2')
{
$("#divNome1").show();
$("#divNome2").show();
}
else if( this.value == '3')
{
$("#divNome1").show();
$("#divNome2").show();
$("#divNome3").show();
}
else if (this.value == '4')
{
$("#divNome1").show();
$("#divNome2").show();
$("#divNome3").show();
$("#divNome4").show();
}
else if (this.value == '5')
{
$("#divNome1").show();
$("#divNome2").show();
$("#divNome3").show();
$("#divNome4").show();
$("#divNome5").show();
}
//Se não for nenhuma das alternativas ele esconde todas
else{
$("#divNome1").hide();
$("#divNome2").hide();
$("#divNome3").hide();
$("#divNome4").hide();
$("#divNome5").hide();
}
});
});
From what I understood and based on the logic of the link example, would that be? It can be done using the css script in several ways ... But I think that example you gave the link already left you in the face of the goal. Give a return and a greater clarification in this doubt if it is certainly not