[jQuery] [validate] Validation with example plugin
Hi,
I'm using the validation plugin which is really cool but I'm also
using it along side the example plugin (http://mucur.name/system/
jquery_example/).
My form validates fine for fields that don't have any example text but
the validation won't trigger for fields using the example plugin.
This is the code:
$("form").validate({
meta: "validate",
errorLabelContainer: "#errors",
wrapper: "li"
});
// Add example text to textboxes
$('.textWaterMark').each(
function() {
var element = this;
$(this).example($(this).attr("example"));
}
);
Is there any way of getting the two to play nicely?
Thanks
Dan