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!

onchange to InitCap

mrosa001Jul 2 2013 — edited Jul 2 2013

Hi,

I am trying to convert the Item to Initcap , using onchange fuction, to UpperCase works fine,

but I did not find to Initcap,

so I created the JavaScript code in the html header page :

<script type="text/javascript">

function initCap(str) {

/* First letter as uppercase, rest lower */

var str = str.substring(0,1).toUpperCase() + str.substring(1,str.length).toLowerCase();

return str;

}

</script>

in the Item P31_PROJETO_CLIENTE

in the form attribute html :

onchange="initCap('P31_PROJETO_CLIENTE');"

but nothing is change after enter data in P31_PROJETO_CLIENTE,

What I am doing wrong ? 

thank you.

This post has been answered by Jayson Hanes on Jul 2 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2013
Added on Jul 2 2013
5 comments
647 views