JQUERY / Javascript
verificaCamposRepetidos(".teste", array1);
verificaCamposRepetidos(".teste1", array2);
HTML:
<p id="parte1">
<span>VALORES de 1 a 3</span><BR/>
<input type="text" class="teste"><BR/>
<input type="text" class="teste"><BR/>
<input type="text" class="teste"><BR/>
</p>
<p id="parte2">
<span>VALORES de 1 a 5</span><BR/>
<input type="text" class="teste1"><BR/>
<input type="text" class="teste1"><BR/>
<input type="text" class="teste1"><BR/>
<input type="text" class="teste1"><BR/>
<input type="text" class="teste1"><BR/>
</p>
The problem is occurring when I am going to type in the block ( #parte1
), it is speaking to enter numbers of 1 à 5
and not 1 à 3
, it seems that it only validates the last function that was added. ..
(% with%)