A draft of what I was referring to:
var groups = {};
$("#myform input").each(function() {
var metadata = $(this).metadata();
if (metadata.group) {
groups[this.name] = metadata.group;
}
});
$("#myform").validate({
groups: groups
});
Untested.
Jörn
On Thu, Sep 25, 2008 at 9:36 PM, Ale
Uhmmm
I ask that becouse I had a PHP framework where in your View layer I
wrote something like that:
Date:{input type="text" name="dtnasc"
value="$dtnasc" mask="99/99/" validate="[(required:true,
dateITA:true, messages:[(required:'Favor preencher este campo!',
dateITA:'Favor preencher com dat
This isn't, yet, supported. You'd have to read the metadata manually
and initlize the plugin based on that.
Jörn
On Thu, Sep 25, 2008 at 5:34 PM, Alexsandro_xpt <[EMAIL PROTECTED]> wrote:
>
> I wish use groups option to display a single message for multiple
> elements, but with metadata behavior.
3 matches
Mail list logo