Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Making a FAQ page - trouble with answer area

    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">

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,316
    Thanks
    29
    Thanked 279 Times in 273 Posts
    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.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •