I've got 3 date fields on a form, each is set using the standard datetimepicker.js, however I have set the resulting text field to readonly to prevent users entering silly date formats into the field.
However the 3 fields must be in the correct order i.e. datetime1 must be before datetime2 and datetime2 must be before datetime3
The datefields are defined as below
Can anybody suggest a way of checking the dates whenever one changes onchange appears not to work on a readonly field??