📜  jQuery 验证条件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:36.050000             🧑  作者: Mango

代码示例1
$("#client-form").validate({
  focusInvalid: false,
  ignore: [],
  rules: {
    salaryband: {
      required: function(element) {
        return $('#job-earnings-salary').is(':checked')
      }
    }
  }
});