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