...

View Full Version : Making a FAQ page - trouble with answer area



powell1294
08-07-2007, 02:40 AM
The question area at the top is fine...you click on it to get the answer to pop up in the lower table; however, when the answer pops up in the window, it is not a read only - as it should be. Any advice or suggestions? Obviously, I am not a web wizard; although I'm trying. Thanks in advance for any help.

A portion of the html is this (of course, the q&a will be different, I just put in a few words to test and then made them all the same):

<td><span class="c2"><br>
Browse the Frequently Asked Questions below and click for the answer.</span>
<div class="c5"><span class="c4"><span class="c3"><select size="10"
name="question" onchange="javascript:showFAQ(this.form);">
<option value="We are.. ">
--&gt; Who is Buttercup Boutique</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>
<option value="okay"> --&gt; How do I subscribe to</option>



</select></span></span></div>
<span class="c2"><br>The Answer:</span>
<div class="c6">
<textarea name="answer" rows=9 cols=50></textarea></div><font face="tahoma" color="#800080">

Arbitrator
08-07-2007, 05:05 AM
If you want the text to be read‐only, then why are you outputting it into a textarea element? You could either give the textarea element a readonly attribute or you could solve the problem directly and output the answer into the div element instead.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum