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!

Hide and show item as per the value of select list

Kalesh Ravi-OracleJul 10 2007 — edited Jul 12 2007
Hi frnds,

I am facing a problem here.
i want to hide and show few items as per the value of a select list
For that i wrote a javascript function like this

<script language="JavaScript" type="text/javascript">
function Show_On_Select_Value(pThis, pThat, pValue){
var rv = document.getElementById(pThis).value;
var elm = document.getElementById(pThat);
if (rv == pValue) {
elm.style.display = "block";
} else {
elm.style.display = "none"; }
}
</script>

and i m calling the function frm the select list like this
onchange="Show_On_Select_Value('P5_HIGHER_EDUC','P5_TIME_TAKEN','Claimed');"

Here the problem is it is hiding the item , but label is still showing..
It means lable is not hiding.
If anybody can help me on this it'll be very helpfull for me.


Thanks in advance,
Kalesh.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2007
Added on Jul 10 2007
8 comments
1,076 views