rickharrison/validate.js — Issue #9: Joomla 1.7, fields are like jform[pass1], matches[] doesn't work
Author: luckyshot
Created: 2011-11-15 00:55:05+00:00
State: open

Joomla uses form field names like jform[pass1]. Matching does not work in these.

Example code below (removed extra code for clarity purposes)

```js
var validator = new FormValidator('member-registration', [
{ name: 'jform[email1]', display: 'email', rules: 'required|valid_email' },
{ name: 'jform[email2]', display: 'repeat email', rules: 'required|matches[jform[email1]]' }
], function(errors, events) {
if (errors.length > 0) {
// ...
}
});
```

```html

```

Tried escaping 'squared parenthesis' like this but doesn't work (maybe this can be the way to go when field names have parenthesis):

```js
matches[jform\[email1\]]
```