javascript - Jquery validation engine ajax, two fields same function? -


the jquery validation engine plugin has ability ajax validation; works gret except 1 small catch...

it sends off field id instead of field name validated.

why issue?

i have simple item create requires 1 textbox filled out; have modal on every page managing said item.

we use jquery validation engine plugin validate entered value unique.

now means modal shows on edit page. has title in field edit.

and want field validated because validation engine sends across field id instead of field name must give 2 fields different id's

e.g. createtitle , edittitle , on backend have

if($fieldid == 'createtitle' || $fieldid == 'edittitle'){$fieldid = $fieldid}

which ugly approach; there way use name; or attribute instead?

maybe this plugin you. uses class names of element validate.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -