function datpickerenabledisable() {
$("[id$=chkVendorProperties]").each(function () {
$(this).click(function () {
if (this.checked) {
$(this).parents('tr').find('[id$=txtEffectiveDate]').datepicker('enable');
}
else {
$(this).parents('tr').find('[id$=txtEffectiveDate]').datepicker('disable');
}
});
});
}
$("[id$=chkVendorProperties]").each(function () {
$(this).click(function () {
if (this.checked) {
$(this).parents('tr').find('[id$=txtEffectiveDate]').datepicker('enable');
}
else {
$(this).parents('tr').find('[id$=txtEffectiveDate]').datepicker('disable');
}
});
});
}
No comments:
Post a Comment