Skip to Main Content

Java Development Tools

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!

How to change color of InputText color placeholder on Focus

3055322Aug 17 2017 — edited Aug 22 2017

Hi All,

I am working on ADF and using Jdev12.2.1.1 and want to change the placeholer text color on focus. For which I wrote following piece of code.

    @agent gecko and (min-version: 19) {

      af|inputText.R3InputText::content::-moz-placeholder {

        color: red;

      }

    

      af|inputText::content:focus::-moz-placeholder{

        color: red;

      }

    

    }

    @agent webkit {

      af|inputText::content::-webkit-input-placeholder{

        color: red;

      }

    

      af|inputText::content:focus::-webkit-input-placeholder{

        color: green;

      }

    

    }

This code is working only placeholder text and changing its color.

Could someone help me to find out the write way to change the PlaceHolder text color on focus.

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 19 2017
Added on Aug 17 2017
9 comments
704 views