Disable Date Picker In Oracle APEX

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 () {

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


All set to play with disable.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *