This question is locked. New answers and comments are not allowed.
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.
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.