Hi,
How to change the background of igTextEditor control in JavaSript?
I take the background value from the database, and cannot be fixed (stored in css).
Thanks,
Dusan.
Hi Dusan,
You can use field method of the editor which gives you jQuery reference to the edit field and then apply your background.
Here is a simple example
var ed = $("#textEditor").igTextEditor("field");
ed.css("background-color", "red");
Its working. Thanks a lot.
And another related question:
How to change the background of igCombo control in JavaSript?
It's a little bit different.
You need to get the input element of the igCombo and set the css:
$(".selector").data('igCombo').fieldElem;
This is not working for me. Other than igCombo all are fine. Could you please suggest some option to achieve this for igCombo.