[validate] errorPlacement called only one time
Hi all,
Im trying to create one tupla, above the input where the error coming from. At the first time (for ex. "This field is required"), this works fine, but when runs another rules (like "This field must be at last 8 characters"), apparently the span tag is not created, or another thing like that..
-
errorPlacement: function(error, element) {
- $(error).html("<span style=\'display:block;text-align:left\'>"+$(error).html()+"</span>");
$(element).before(error);
- }
Really thx for the help!