-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I want to change the style of the input element of a combobox programmatically.
Combobox.setSclass(...) doesn't work, because it does not set the style of the contained input box.
Is it possible to access the input box element somehow?
The reason is that I have a button event listener that should check the content of a combobox and change the backround color of the combobox if the content is not valid.
Have you tried .setStyle(" ... "); ?
Hi fumrob,
Have you tried to use an SClass with CSS selector like:
<style> .mySClass .z-combobox-inp { background: red; } </style>
This selector should match any element with class "z-combobox-inp" (which is the input field) with ancestor of class "mySClass". By adding and removing SClass "mySClass" you should be able to switch the background programmatically.
Regards,
Simon
Asked: 2010-07-02 05:11:05 +0800
Seen: 464 times
Last updated: Jul 07 '10