howard chen wrote:

abt this plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/

several problems:

1. Is it possible to dynamic add INPUT into the current list of checking?
You can use validator's refresh method to check for additional input elements. That works best when combined with metadata. Otherwise you have to extend the rules-object you passed into the plugin method.

2. Is it possible to user `id` instead of `name`?
You could overwrite jQuery.validator.prototype.idOrName to always return the ID of the given element.
3. Is it possible to check for something like name="email[]" ?
Sure. Just put the name into quotes when specifying validation rules, eg. "email[]": { required: true, email: true }

Let me know if you need further help or details on one of these items.

--
Jörn Zaefferer

http://bassistance.de

Reply via email to