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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -