Is there a way to make a textarea not editable?
<textarea cols="80" name="message" rows="12" style="font-size:11px;padding:5px;">
default text goes here and here
I want to display the above as a textarea and be able to post the data but I dont want the user to be able to edit it.
Try the readonly attribute. Google for more information.
Do you have an account at DS? I think I know your avatar.
Ah nevermind, you can have focus on the readonly attriute.
Read this from Microsoft
Hi thanks for the reply
Do you have an account at DS?
What is 'DS'?
Did my reply suffice a good answer for your question (God that was worded weird)
yes, Im a member of devshed
To be honest, you lost me with your advice, it went a little over my head lol
<textarea name=mytextarea cols=5 rows=5 readonly>
This is a non editable text area for Adammc
Adammc What browser are you trying to use this non editable text area for? Although there is alot of arguments on not using readonly="readonly" attribute.
This is pretty intresting actually i had to look it up and do some research.
If anyone else has any suggestions on how to do this feel free to post.
Thank you it works in both IE and Firefox
Sweet I didnt try it out. But now i know that it works. Im glad to help you Out if you have any more problems make sure you come back.
You could merely have read the link I gave, yet there was no example there I think so thank the others for providing one. Glad it worked :).
I'm GameYin at DS.
This topic is now closed. New replies are no longer allowed.