jQuery-Form-Validator
jQuery-Form-Validator copied to clipboard
Validate two inputs at time
trafficstars
I have input1 & input2 .. how can I validate that the sum of their characters length are not exceed 30 (for example) ?
like:
var one = input1.val() = 10;
var two = input2.val() = 25;
if ((one + two) >= 30) trigger validation error else valid
how can this be implemented ?