Hey Guys,
We are going to disable the date picker, because some times we don't need to allow for editing (due to some privilege ).
Approach is using Jquery :
Create a javaScript function :
function disableDatePicker() {
$('.hasDatepicker').each(function () {
$(this).addClass('apex_disabled').next('button').addClass('apex_disabled');
});
}
We are going to disable the date picker, because some times we don't need to allow for editing (due to some privilege ).
Approach is using Jquery :
Create a javaScript function :
function disableDatePicker() {
$('.hasDatepicker').each(function () {
$(this).addClass('apex_disabled').next('button').addClass('apex_disabled');
});
}
Since you run this function on page (Execute on page load OR any event where you want ) all the date pickers will be disabled.
Your Item become Disabled.
If You Want only one item as per requirement:
Create a JavaScript function
function disableDatePicker_c(p_this) {
$('#' + p_this).addClass('apex_disabled').next('button').addClass('apex_disabled');
}
And while calling this function pass the item Name in the function
disableDatePicker_c('P33_DATE');
All set to play with disable.
No comments:
Post a Comment
Please do not add any spam links or abusive comments.