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 code giving id not name

mjhamiltonSep 11 2007 — edited Sep 14 2007
I have an onchange event that triggers a javascript function on a ApEx page. The javascript function is suppose to retrieve an existing page item value (P2_SPG_NAME).

var name = document.getElementById('P2_SPG_NAME').value;

The page item value for P2_SPG_NAME returned is the id not the name. Why? Did I leave something out?

Thanks, M
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2007
Added on Sep 11 2007
17 comments
1,393 views