[jQuery] [validate] Modify the position of the validation message
Hello
I am currently trying to implement jQuery.validate in my code
generator for creating forms. Only I am having some questions about
how to update the position where the validation message element are
getting created. I am having problems with it when a validation
message has to be shown for a list of radio or check boxes. I am using
the following html for such lists:
<li>
<label for="question_13">Question #13 <span class="required">*</span></label>
<div>
<ol class="form-list">
<li><input type="radio" id="question_13_1"
name="question_13"/><label for="question_13_1">Option #1</label></li>
<li><input type="radio" id="question_13_2"
name="question_13"/><label for="question_13_2">Option #2</label></li>
<li><input type="radio" id="question_13_3"
name="question_13"/><label for="question_13_3">Option #3</label></li>
</ol>
</div>
</li>
The ideal place for the error message to be shown would be after the
DIV element. Only I am not sure how I can change it. I understand you
would need to modify the errorPlacement parameter of the validator.
Only I am not sure how to do this. How would I be able to get the
DIV-element so I can add the error message after this (div) element?
Thanks.
Yours,
Weyert de Boer