Problem placing validate error message
Having difficulty getting one specific fieldset to display the error message. Here is the structure of the problematic fieldset
<fieldset id"SomeID">
<ul class="someClass">
<li><label><input type="checkbox" name="someName" id="someName">I AGREE</label></li>
<li><label>ELECTRONIC SIGNATURE REQUIRED*<input type="text" name="someName" id="someName"></label></li>
</ul>
</fieldset>
It is applying the error class to the label and not displaying an error msg.
errorElement: "p",
errorContainer: $("#AgreementSummary"),
errorPlacement: function(error, element)
{
if( element.closest("#standardFieldset").length ) {
error.appendTo( element.parent("li"));
} else if( element.closest("#SomeID").length ) {
element.parents("label").next("li").append(error);
} else {
error.insertAfter(element.parent("li"));
}
},
I would like the error elements for the fieldset "SomeID" to crate a new li and insert after parent li. thx
Kane Leins