add validation in jquery

How to add validation rules in ready function $.validator.addMethod(“myValue”, function (value, element, params) { var isInvalidNumber = false; var number = $(“#MyTextbox”).val() if (number == “”) { } else { number = parseFloat(number); if (isNaN(number)) { number = 0; } if (number > 100) { isInvalidNumber = true; } } return !isInvalidNumber; }, $.format(“{1}”)); add… Read More add validation in jquery