javascript - How to prevent jquery validator to send default element name and value? -


i have jquery validator plugin , need have ajax validation method. first of all, tried use remote, understand sends element's value , uses element's name. if need other parameter name instead of element's name? method can applied different form elements class , need sure send same parameter element's value. so, if have this:

<input name="zip1" class="zip" /> <input name="zip2" class="zip" /> 

and rule config this:

remote: 'http://example.com' 

then ajax calls 'example.com/?zip1=value' , 'example.com/?zip2=value', while need have specific parameter name.

another thing need process response , i'm not sure how remote.

so i'm thinking creating custom method instead of using remote, ajax call parameter name want, process response , set validation status.

is there better solution?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -