Answers for "how to use if condition in jquery validation"

0

jquery validate conditional

$("#client-form").validate({
  focusInvalid: false,
  ignore: [],
  rules: {
    salaryband: {
      required: function(element) {
        return $('#job-earnings-salary').is(':checked')
      }
    }
  }
});
Posted by: Guest on August-26-2020
0

how to use if condition in jquery validation

name :  {
            required : $("#id").val().length <= 0
         },

    zipcode :  {
            required : $("#id").val().length <= 0
         },
Posted by: Guest on October-18-2021

Code answers related to "how to use if condition in jquery validation"

Code answers related to "Javascript"

Browse Popular Code Answers by Language