Thanks now the radio buttons bit are working. Only when I am using the follow settings in the validator-object:
errorContainer: "#errors", errorPlacement: function(error,element) { error.appendTo( element.parents("div") ); }, Now I had thought that this would add that label-tag near the form field and the same validation message to the #error container element. No luck. Do I need to clone it somehow in the errorPlacement-method? On Wed, Oct 8, 2008 at 4:13 PM, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Take a look at the errorContainer and errorLabelContainer options: > http://docs.jquery.com/Plugins/Validation/validate#toptions > > Jörn > > On Wed, Oct 8, 2008 at 4:10 PM, Weyert de Boer <[EMAIL PROTECTED]> wrote: >> >> Would it also be possible to show all the same errors in a <div >> id="errors">-container and also near the form field itself? >> >> On Wed, Oct 8, 2008 at 4:10 PM, Weyert de Boer <[EMAIL PROTECTED]> wrote: >>> 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 >>> >> >