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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Function to disable items

432801Sep 28 2006 — edited Oct 20 2006
Hi everybody,

My function disFormItems :

<script language="JavaScript1.1" type="text/javascript">
function disFormItems(item1){
if(document.getElementById(item1).value != "")
{
disItem = document.getElementById(item1);
disItem.style.background = '#C0C0C0';
disItem.disabled = true;
}
}
</script>

I call it on my p32_id_feuillet element

OnClick="disFormItems('P32_ID_FEUILLET');" It works.

But I want to launch this function when I open the page

Second, I want my element to be bold, when I add disItem.style.font = ‘bold’ but my element don’t stay to a disabled state.

Thanks. Bye.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2006
Added on Sep 28 2006
18 comments
2,255 views