Validate a field inside a validation function
问题 This is related to this question: Validation for selecting a minimum and maximum So I have two fields one for minim and one for maxim that the user must enter. I need to have a validation on both field that they are correct minim < maxim. I have the following code $.validator.addMethod('lessthan', function (value, element, params) { var greatElement, validator, less, greatText, isEqualValid, great; greatElement = $(params[0]); // This code does not work //validator = $( greatElement[0].form )