Closed espen closed 10 years ago
I think the rangeSelected
event is what you're looking for.
Indeed. Great. Thanks for a useful plugin and the quick response.
I will set up a demo with this issue later but perhaps before I do that know if there is any issues with the rangeSelected event and hidden fields ? I have to manually do a refresh on rangeIncomplete to be able to trigger rangeSelected.
I basically want to use just one date/time and then get the value when both fields are filled in properly.
Could you throw this into a jsFiddle so I can see a working version?
I have a hidden field for that stores the complete datetime (as my API currently only takes one field). I want to update this field with date and time value. Not sure how common this is but it would be really nice to have a function that is called only when either date/time is changed. If both date and time is set and validated then return datetime, otherwise (if both or any of the date/time fields are empt/invalid) return nil.