jQuery-Form-Validator icon indicating copy to clipboard operation
jQuery-Form-Validator copied to clipboard

Validate two inputs at time

Open php-ini opened this issue 8 years ago • 0 comments
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 ?

php-ini avatar Nov 08 '17 13:11 php-ini