guillaumepotier/Parsley.js — pull request #645 by jnsandrew (2014-05-15 10:41:14+00:00)
Title: Allow passing of extra options with addAsyncValidator function

You can pass in your remote options through the addAsyncValidator function, instead of using the 'data-parsley-remote-options' attribute on the field.

```javascript
$('[name="q"]').parsley()
.addAsyncValidator('mycustom', function (xhr) {
return 404 === xhr.status;
}, 'http://mycustomapiurl.ext',
{ "type": "POST", "dataType": "jsonp", "data": { "token": "value" } }
);
```