AnsweredAssumed Answered

Javascript to disable datepicker

Question asked by Christopher Casey on Jul 22, 2016
Latest reply on Jul 23, 2016 by Christopher Casey

Hi everyone...  Hoping there's some script coder better than I am here (or someplace where someone could redirect me to).


We currently have the start and end dates on our course settings page completely hidden for teachers via javascript.   I'd like to change to having the fields visible, but just disabled.


So far, I can do this with the input fields and the override checkbox, but I've been unable to figure out how to disable the datepickers next to the boxes.


my working code is:







If anyone could figure out how to disable the datepickers, I'd be so grateful!  I can add the disabled="disabled" code in firefox inspector mode, and the button does get disabled, so I know it's got to be possible, just can't seem to figure out the right code snippet.