Hello again,
I was trying to make range of dates, but provided JS code is just ignored and won’t do anything (if I try the same code in dev console it works).
Do you have any idea why is this happening? Note that I’ve disabled all plugins and unhook all js scripts in order to find the roots of problem.
$("#ID" ).datepicker( "option", "yearRange", "2016:2020");
I’ve checked the API docs of datepicker and non of those options is working when loaded inside js file, but works when I paste them in dev console.
// Getter
var yearRange = $( ".selector" ).datepicker( "option", "yearRange" );
// Setter
$( ".selector" ).datepicker( "option", "yearRange", "2002:2012" );