J
Jochen Fuhrmann
how can i change the color of a disabled fom field?
jochen
jochen
how can i change the color of a disabled fom field?
brucie said:color:blah;background-color:blah;
color may be system disabled text color. changing default disabled
colors not recommended. it is not expected behavior.
Jochen Fuhrmann said:doesn't work for disabled fields
so is there another way to avoid that the curser gets into to field
when i press the tab key?
doesn't work for disabled fields
so is there another way to avoid that the curser gets into to field when i press
the tab key?
Then you didn't use it properly, or used a browser that does not
support the relevant parts of relevant specifications. Hard to tell
without any specifics.
Pardon? If _that_ was the real question, why didn't you ask it in the
first place? And how would the color change help?
brucie said:what has the color of the field got to do with tabbing? in any case
default behavior is for tabbing to skip disabled fields. stop doing
whatever you're doing so the default behavior works.
^^^ you missed 'disabled'ie 6.0 <input style="color:rgb(0,0,0)"> -> its still kindof bright grey
maybe my description wasn't that exact, the problem is, that if i disable the
input field, the
text color changes from black to bright grey, i wanna have it black. disable
tabbing works ... jochen
Jochen Fuhrmann said:the problem is, i disabled the <input> stuff
Why?
and the color changed,
but i wanted it to be black,
so if theres another was to
avoid the cursor in the field
Jukka K. Korpela said:Is that what you want, or do you wish to disable the field?
Why don't you just tell what you really wish to accomplish, in terms of
functionality, and illustrate it with a URL?
Beauregard T. Shagnasty said:If you should manage to change the color to black, imagine the frustration
of your visitor who tries and tries to type something there.
Leave it show as disabled, or use something else to display whatever it is
you want to display.
Jochen Fuhrmann said:i'll try to descibe it. i wanna display a form that consists of 3 fields, one is
day, than a dot, the next is month followed by a dot and finally the year,
i want it to look like one field, and i wanna reach the 3 fields by pressing the
tab key. when i tried to just put the dot between the input fields or put the
whole thing in a table, the dot wasn't on the same hight as the numbers i
typed into the input fields, so i thought it would be best to use a disabled
field,
which how i described kind of worked, but i still want it to be black.
dont think so, cause it doesn't look like a type in form, and because of my
background color they doesn't see anything, thats the main problem with
the whole "disabled color"
thats an option, maybe i should try something else
rf said:If you really want to have it looking like this then don't use an input
field for the dots. Use a <span> and style it to look the way you want it
to.
Beauregard T. Shagnasty said:Will something like this work?
<form action="foo"...>
<fieldset>
<legend>Enter Date:</legend>
<label for="day">Day: </label> <input type="text" id="day" size="2">
<label for="month">Month: </label> <input type="text" id="month" size="2">
<label for="year">Year: </label> <input type="text" id="year" size="4">
</fieldset>
</form>
Three fields, clearly labeled "day", "month", "year" would IMHO be better.
Jochen Fuhrmann said:sure it'll work, but it doesnt help me with my problem,
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.