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!

CHANGE Colour/Font OF A TEXT FIELD

823666Mar 15 2011 — edited Mar 15 2011
Hi all,

I have an issue in Apex :

I need to change the colour of an text field and its font size/style when i enter that text field and when i leave that text field it should become normal and the text field which i enter should inherit those characteristics.

I wrote some code as below :

onfocus="this.style.backgroundColor='white'" onblur="this.style.backgroundColor='orange';"

and placed it in Element --->HTML Form Element Attributes
It is working to some extent.
i.e colour will change when i enter the text field.

But i need to change font also as mentioned above(in bold).

Can any one help me write a Function(Java script) so that i can call it where ever necessary.
Or please give your ideas on this.

I am using Oracle Apex 4.0

Thanks and Regards.
Saroop
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2011
Added on Mar 15 2011
1 comment
2,121 views