Unobtrusive JavaScript date-picker widgit

onupdate Demo

onupdate callback demo

The following datePicker has Easter Monday dynamically calculated by the datePickerController.onupdate method and the result used to disable the date in question using the datePickers’ setDisabledDates method. Additionally, I’ve dynamically updated a stylesheet that displays the calculated Easter Monday date with a red background.

class=“format-d-m-y divider-dash highlight-days-12 range-low-today no-transparency”

View the related “language in the lab” post for this demo.