Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set a Select List to Read Only (not Disabled) using Javascript

PaulPNov 8 2018 — edited Nov 11 2018

APEX 18.1

I need the javascript code to make a Select List Read Only, i.e no user input but able to refer to the value in other DAs  (therefore  NOT disabled).

This works in a Page Load DA for a text item

$x('P1021_CRG_NR').readOnly = true;

$('#P1021_CRG_NR').css("cssText", "background-color: #FFFFFF!important;");

but what is the code for a Select List?

I tried $('#P1003_CAS_AGR_UID').attr('readonly', true) but it doesn't work.

May as well throw in Text Area and Check Box if you know

thanks in advance

PaulP

This post has been answered by Pierre Yotti on Nov 8 2018
Jump to Answer
Comments
Post Details
Added on Nov 8 2018
5 comments
8,746 views