Hey,
I found a bug with jqxValidator on IE8 (and perhaps newer versions of IE too).
In the “rules” property, if you leave a period ,
at the end, it will throw an error as it seemingly tries to parse the last object (after the ,
), which doesn’t exist.
Error is at line 7, char 6325 of jqxvalidator.js.
Exemple :
$("#form").jqxValidator({
rules:[
{ input: '#test1', message: "Test 1", action: 'keyup', rule: 'required' },
{ input: '#test2', message: "Test 2", action: 'keyup', rule: 'required' },
]
});
This will not work because of the last period after the test2 end bracket.
This will work however :
$("#form").jqxValidator({
rules:[
{ input: '#test1', message: "Test 1", action: 'keyup', rule: 'required' },
{ input: '#test2', message: "Test 2", action: 'keyup', rule: 'required' }
]
});
You can also put a period after the ]
just fine.
I can confirm this is a bug because putting a period at the end worked for the columns property of jqxGrid for instance, and because it only happens on IE8.
Have a nice day,
Coloco.