Page 1 of 1

Change in drop down value after selection

Posted: Wed Jul 27, 2016 4:26 pm
by Raga Mounika
Hi Team,

I have to do CSS changes in a tool for <pre> element.
Consider the example of <pre> element.It has a drop down in it which consists of a value "pgwide-cond".On selecting "pgwide-cond" from the dropdown it should be displayed as pre outputclass="pgwide condensed" instead of pre outputclass="pgwide-cond" .

Please help me with the code in CSS how to change it on selection from dropdown.

Thank you!

Regards,
Mounika

Re: Change in drop down value after selection

Posted: Thu Jul 28, 2016 12:52 pm
by alex_jitianu
Hi Mounika,

You can use the labels property:

Code: Select all

pre:before {
content: oxy_combobox(
edit, '@outputclass',
editable, false,
values, 'pgwide-cond, pgwide-exp',
labels, 'pgwide condensed, pgwide expanded')
}
Best regards,
Alex