Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery validate conditional

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

how to use if condition in jquery validation

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

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

PREVIOUS NEXT
Code Example
Javascript :: moment to date 
Javascript :: socket.io with express 
Javascript :: copywithin javascript 
Javascript :: object element by index javascript 
Javascript :: how to loop and add number in fuction for javascript 
Javascript :: moment use in angular 
Javascript :: express get query params from url 
Javascript :: delete all node modules 
Javascript :: JAVASCRIPT ARRRAY LOOP BACKWARDS 
Javascript :: js domtokenlist to array 
Javascript :: typescript class constructor default values 
Javascript :: get element font size javascript 
Javascript :: react router history push parameter 
Javascript :: firebase.database is not a function 
Javascript :: reactjs get checkbox value 
Javascript :: NextJS PWA gitignore 
Javascript :: prime or not in javascript 
Javascript :: javascript xmldocument to string 
Javascript :: loop dictionary with key and value javascript 
Javascript :: scroll down up js 
Javascript :: jquery click hold down 
Javascript :: device width js 
Javascript :: ajax call do something while 
Javascript :: javascript reduce array of objects 
Javascript :: how to sum two var in jquery 
Javascript :: how to make div visible and invisible in javascript 
Javascript :: dotenv nodejs 
Javascript :: load +main.js with system.import 
Javascript :: js tab active 
Javascript :: import createstore from redux 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =