Hi! In a from I need to 'empty' a radio group when a date is selected with a datepicker in a date (text) field.
I tried 'onchange'
jQuery('input#afspraak').change(function () {
jQuery('#ftr-seminar input').prop('checked', false);
});
But this does not work. I now use this
jQuery('input#afspraak').click(function(){
jQuery('#ftr-seminar input').prop('checked', false);
});
This empties the radio buttons, but I actually only want to dot this if there is a date placed in the date field by the datepicker.
Is there any way I can have jQuery do something after the datepicker has been used? Who can point me in the right direction?
Kind regards,
Jip
I tried 'onchange'
jQuery('input#afspraak').change(function () {
jQuery('#ftr-seminar input').prop('checked', false);
});
But this does not work. I now use this
jQuery('input#afspraak').click(function(){
jQuery('#ftr-seminar input').prop('checked', false);
});
This empties the radio buttons, but I actually only want to dot this if there is a date placed in the date field by the datepicker.
Is there any way I can have jQuery do something after the datepicker has been used? Who can point me in the right direction?
Kind regards,
Jip
Hi Jip,
As far as I can see from the code the ChronoForms datepicker doesn't fire an event when it changes. If you switch to using the JQuery UI datepicker then there is an onSelect event that you can hook in to - see [url=http://stackoverflow.com/a/6471992/2030112]this StackOverFlow answer[/URL].
bOB
As far as I can see from the code the ChronoForms datepicker doesn't fire an event when it changes. If you switch to using the JQuery UI datepicker then there is an onSelect event that you can hook in to - see [url=http://stackoverflow.com/a/6471992/2030112]this StackOverFlow answer[/URL].
bOB
Hi,
Please try this event, it has been added in the latest update:
Regards,
Max
Please try this event, it has been added in the latest update:
$("#field_id").on("select_date.gdatetimepicker", function(){
//event code here
});
Regards,
Max
This topic is locked and no more replies can be posted.