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!

javascript: set value of hidden item

chrissy2Feb 22 2006 — edited Feb 23 2006
Hi,

I have a select list and a hidden item on my page, after select a value, I want to write this value (and a little bit more) to the hidden item.
So I have done the following...

applied to page html header:
<script language="JavaScript" type="text/javascript">
function setExpress(item_id)
{
html_GetElement('P230_HIDDEN').value = 'Test ' + html_GetElement(item_id).value;
}
</script>

and in selection list I set the HTML Form Element Attributes to onChange="setExpress(this.id); .

But nothing is written to the hidden item. When I make it a text field it works correct.
Isn't it possible to set a value of hidden item by javascript? Is there another way to do this (without computation)?

Thanks for help
chrissy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2006
Added on Feb 22 2006
4 comments
1,957 views