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!

Do not Gray out Input fileds in View-Only Mode (disabled) using jQuery

sect55May 5 2011 — edited May 5 2011
When in view-only mode, my customer wants the disabled and read-only fields not to be grayed out. I added .css("color","black").css("background-color","white") to the jQuery call. It works for text and textarea but not check boxes. How can I apply it to check boxes?
 if ($x(pQuestion))
 {
   if ($v(pQuestion)=='Y' || $v(pUserType)=='L')
      {
        $(":input").not('[type="hidden"]').attr('readonly','readonly').css("color","black").css("background-color","white");
        $(":input").not('[type="hidden"]').attr('disabled',true).css("color","black").css("background-color","white");
      }
  };
 if ($x(pUserType))
 {
  if ($v(pUserType) == 'F')
     {
       $('img[alt="Lock"]').parent().removeAttr('href');
     }
 };
Thank you in advance

Robert
http://apexjscss.blogspot.com
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2011
Added on May 5 2011
2 comments
1,679 views