All,
I have need of a readonly select element that looks and acts disabled to
the user. The problem with the disabled attribute is that the value
isn't passed to the handler, so I'm using readonly. Problem with
readonly is that is allows focus, which when the user highlights, then
hits backspace (as if to change the field), the browser does a
history.back. This is confusing to users.
The following code works great in NN6, but IE ignores it.
Any suggestions?
Desired behaviour: clicking on the element does nothing; nothing can be
selected. Element cannot have focus.
Behavior acheived in NN6.
Behavior in IE: clicking selects it. Changing the selection changes it.
(tried onChange return false, etc).
<html>
<head>
<title> New Document </title>
</head>
<body>
<form name="f1">
<select name='choice' id='choice' readonly style='background-color:
#ababab' onFocus='this.blur(); return false;'>
<option value='' selected> </option>
<option value='Y'>Y</option>
<option value='N'>N</option>
</select>
</form>
</body>
</html>
--
--
~kaeli~
Local Area Network in Australia:... the LAN down under.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace