View Full Version : ReadOnly: Selectors and Tabbing

7 Jun 2010, 11:37 PM
I have a couple of textfields, numberfields and comboboxes in a form that will be either editable (normal), disabled or readonly depending on the current program-state.

My problems are:
1: It is possible to style readonly fields in FF via CSS selectors ...

.x-form-text[readonly] {
... but that does'nt seem to work in IE. Solution? (Besides asigning a cls to every textfield)

2. Is it possible to 'turn of' tabbing for the readonly fields (as in the disabled ones)?

And for various reasons I want my readonly fields to be readonly and not disabled ...

Thanks in advance!

8 Jun 2010, 12:00 AM
Saw that you can set ...

tabIndex: -1,
... which disables tabbing for a field.