how to change the bootstrap multidate property dynamically -


i using bootstrap datepicker follows,

$('#columnvalue').datepicker({             format: "mm/dd/yyyy",             autoclose: false,             multidate: true             }).on('changedate', function () {                             });  

depending on condition want set multidate property false.

i have tried following code without success

 $("#data").on("change", function () {     $('#columnvalue').datepicker({                         format: "mm/dd/yyyy",                         autoclose: true,                         multidate: false                     });  }); 

what proper way this?

thanks

well figured out

  $("#data").on("change", function () {      $('#columnvalue').datepicker('remove');             $('#columnvalue').datepicker({                                 format: "mm/dd/yyyy",                                 autoclose: true,                                 multidate: false                             });          }); 

Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -