Please help me with this , I'm using Jquery datepicker daterange and I need to disable some days dinamically controlled from a textbox on my form. The default value of the textbox is [2, 4, 5] and i want to pass this value to the var daysToDisable like this :
var daysToDisable = document.myform.mytextbox.value;
instead of : var daysToDisable = [2, 4, 5];
But it's not working . Why it's not working , where is the prolem ?