I am trying to write a Less than validator for jQuery.
Less than
I want to compare one text box against another, so if I have:
Consider (A) is the name of the input that you want the value of it to be less than (#B) input. this code worked with me after making the type of the two inputs is: type="number"
type="number"
$("#form").validate({ rules: { A: { lessThan: "#B" } } });