Change Font Color of "Select" Tag.

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
dioogo
User
Posts: 2

Change Font Color of "Select" Tag.

Post by dioogo »

Hi guys,

I'm new at phpmaker. So this is my question, I have one table named "Asks" this table have one field called "Status" the field "Status" is one "Select" that have some options when clicked. So when I click on "Status", some options appear to me, like "Open, Closed, Confirmation..." I need to known how do I change the color of those options. Like "When the value is "OPEN", then the color is red". Thanks.


danielc
User
Posts: 1601

Post by danielc »

If you mean the font color change for your selected value, you need to add your js function in [Custom attributes] for your field in [Edit Tag] panel to trigger. See Field Setup in help file.

Then, put your js function in Client Script->Global->Pages with header/footer->Global Code.


dioogo
User
Posts: 2

Post by dioogo »

danielc wrote:
If you mean the font color change for your selected value, you need to add your js
function in [Custom attributes] for your field in [Edit Tag] panel to trigger. See
Field Setup in help file.

Then, put your js function in Client Script->Global->Pages with
header/footer->Global Code.

I'm seeking for this code, anyone help me?


danielc
User
Posts: 1601

Post by danielc »

Google "change font color in select box". You may find some example.


Post Reply