jquery - Setting a concrete date to start the datepicker -


i doing calendar jquery datepicker , have set initial date in '1/1/2013'. means first date shows datepicker must that. have tried that:

 $(function() {    $('#datepicker').datepicker({mindate: '01/1/2013'})  }); 

but dont obtain searching for. reading in page , found example:

$(function() {    var date = new date(); // replace date    $('#datepicker').datepicker().val(date.asstring()).trigger('change'); }); 

but doesnt work.

if can me, pleased

try this:

$('#datepicker').datepicker("setdate", new date(2013,00,01)); 

fiddle


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -