Page 1 of 1

Change background color for readonly field using Javascript Code

Posted: 27 Jun 2019
by Hnin Yu
Hello,

I want to change background color for readonly field using Javascirpt .I use the following code.But how can I change the background color in these code.

fd.field('title').readonly(true);

Re: Change background color for readonly field using Javascript Code

Posted: 27 Jun 2019
by mnikitina
Hello!

Please use the following code. Just change the color to the one you need.

Code: Select all

fd.field('title').readonly(true);
$( "input[type=text]:disabled" ).css( "background-color", "#6ce7e8" );