This is a migrated thread and some comments may be shown as answers.

[Solved] How to enabel datetime picker?

1 Answer 37 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
divyalok
Top achievements
Rank 1
divyalok asked on 25 Aug 2011, 08:47 AM
Hi,

I have disable and enable datepicker on check box checked/unchecked .

i wrote this code snip

function HandleDate(Control) {
                 if ($('#InformationSkip').attr('checked')) {
                //Disable
                var dp = $("#NextCollectionDate").data('tDatePicker');
                dp.$input.unbind('focus');
                $("#NextCollectionDate").find('.t-icon-calendar').bind('click', function () {
                    return false;
                });

                $("#NextCollectionDate").data('tDatePicker').disable();
                alert("disabled");
            }
            else {
                //Enable
                datePicker = $('#NextCollectionDate').data('tDatePicker');
                datePicker.$input.unbind('focus');
              
                $("#NextCollectionDate").data('tDatePicker').enable();
                alert("enabled");
            }
        }

when i click on control, it dosn't show calander at all but i am able to write in textbox of that controll.

Thanks.

1 Answer, 1 is accepted

Sort by
0
divyalok
Top achievements
Rank 1
answered on 26 Aug 2011, 08:48 AM
Thanks.

I got the solution.
Tags
Date/Time Pickers
Asked by
divyalok
Top achievements
Rank 1
Answers by
divyalok
Top achievements
Rank 1
Share this question
or