Jean schrieb:
Really lol
Dude i´m with a little problem to append the error msg in the right place
look my structure
<ul>
<label for='perg9'><strong>Pergunta 9</strong>: Qual o faturamento
anual da empresa?</label><br />
<input type='hidden' id='p9' name='p9' value='110'>
<li>//Here is the supost place</li>
<li><input type='radio' name='perg9' id='perg9'
class='{required:true}' value = '105' />
Até R$ 240.000</li>
<li><input type='radio' name='perg9' id='perg9'
class='{required:true}' value = '83' />De R$ 240.001 a R$
2.400.000</li>
<li><input type='radio' name='perg9' id='perg9'
class='{required:true}' value = '84' />De R$ 2.400.001 a R$
60.000.000</li>
<li><input type='radio' name='perg9' id='perg9'
class='{required:true}' value = '106' />Acima de R$
60.000.001</li></ul>
Isnt errorElement : "li", ??
if a i can append between </label> <li> is better.
i´m trying a lot diferent elements but it returns in the same position always =/
errorElement alone won't help. Check the example for errorPlacement:
$("#myform").validate({
errorPlacement: function(error, element) {
error.appendTo( element.parent("td").next("td") );
}
});
-- Jörn