Disable dates on Datepicker returns error
-
Following the documentation to disable dates
https://developer.ninjaforms.com/codex/datepicker/dateObject.pikaday._o.disableDayFn = function( date ) {
var disabledDays = [“2017-04-28”, “2017-04-29”, “2017-04-30”];
if ( _.indexOf( disabledDays, moment( date ).format( “YYYY-MM-DD” ) ) !== –1 ) {
return true;
}
}Returns Uncaught SyntaxError: Invalid or unexpected token in the if statement !== –1
How can I fix this?
- The topic ‘Disable dates on Datepicker returns error’ is closed to new replies.