Well, for feedback purposes, it might be useful to show the displayed as well, no?
You can use the readonly attribute, like this:
<input type="text" readonly="readonly" value="Your Value" id="txtDate">
This way, a user can no longer change the text, but you can still access it with JavaScript.
Note that readonly is not supported on all browsers....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|