Jan 05, 2011, 11:35 AM
Preserve Textfield selection
Hi!
I've a textfield that simulate a color field, when you focus it I show a color menu to pick this color and then the textfield background colors with it.
In other way, I must have the RGB text in this texfield to save it later in the database. I color this text too and it seems that there isn't in the textfield.
I set readonly=true and enabled=false to the textfield
I don't use disabled=true because if the text changes it's color to gray (disabled) and fieldlabel turn it to gray too.
Is there any way to preserve the text selection of a textfield?
I've a textfield that simulate a color field, when you focus it I show a color menu to pick this color and then the textfield background colors with it.
In other way, I must have the RGB text in this texfield to save it later in the database. I color this text too and it seems that there isn't in the textfield.
I set readonly=true and enabled=false to the textfield
I don't use disabled=true because if the text changes it's color to gray (disabled) and fieldlabel turn it to gray too.
Is there any way to preserve the text selection of a textfield?