javascript - select by default previous date with jquery calendar -


i have datepicker codes below display me calendar, current date selected default, select previous date default instead (the day before today). have tried failed can me please?

$(function() { $("#datepicker").datepicker({ dateformat: "yy-mm-dd" }).val() }); 

i resolved issue way

$(function() {     $("#datepicker").datepicker({ dateformat: "yy-mm-dd" }).val();     $("#datepicker").click(function() {              date = new date();         date.setdate(date.getdate()-1);         $( "#datepicker" ).datepicker( "setdate" , date);                    });   }); 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -