Category : toolbox

Scenario: Field1: Primary field Field2: Secondary field The secondary field should be less than or equal to the primary field. //fields <input name="field1" id="field1" data-qid="1-f1" value="2"/> <input name="field2" id="field2" data-qid="1-f2" value="5" crossvalidationqid="1-f1" toolboxcrossvalidation="Field1 should be higher than Field2"/> //Validator $.validator.addMethod(‘toolboxcrossvalidation’, function customCrossValiadtion(value, element, param) { if(this.optional(element)){ return true; } //Grab value of the input field ..

Read more