Datepicker For Bootstrap : update value -
i using datepicker bootsrap , trying dynamically change value after attaching it.
i have initialized way :
$("#vh_chooseweek").datepicker({ weekstart : 1 }) .on('changedate', function(ev){ vh_displayweek(ev.date); $("#vh_chooseweek").datepicker('hide'); vh_main(); }); and trying update way :
var vh_tamperweek = function(nbweek){ currenttoday.setdate(currenttoday.getdate() + 7*nbweek); $("vh_chooseweek").datepicker('setvalue', currenttoday); } no exception raised seems 'setvalue' method isn't working. have kind of idea fix problem or workaround ?
the way made working using plugin called datetimepicker;
you can find there;
Comments
Post a Comment