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

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -