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 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Working with commented HTML Code.

    I have a form created and a jump down menu. i need to make it functional so that when you select the a problem certain questions show. Im trying to get it to function with all sets of questions even though they are commented out. Any advice?


    Code:
    		<script language="JavaScript" type="text/javascript">
    <!--
    
    
    
    }
    function showhide(id){
      if (document.getElementById){
        obj = document.getElementById(id);
        if (obj.style.display == "none"){
          obj.style.display = "";
        } else {
          obj.style.display = "none";
        }
      }
    }
            }
        }
    }
    	
    
    
    
    //-->
    
    
    		</script>
    </head>
    
    
    
    <body>
    choose problem that is happening from the list.<br>
    
    			<select id="problem" size="1" onChange="ShowHide(this)">
    				<option value=""></option>
    				<option value="1">
    					Problem 1
    				</option>
    				<option value="2">
    					Problem 2
    				</option>
    				<option value="3">
    					Problem 3
    				</option>
    			</select>
    		
    			<div id='ques'>
    			</div>
    			<div id="s1q1" class="Question">
    				Question1:<BR> <textarea cols="40" rows="5" name="myname1">
    				</textarea><BR>
    			</div>
    			<div id="s1q2" class="Question"> 
    				Question2:<BR> <textarea cols="40" rows="5" name="myname2">
    				</textarea><BR>
    			</div>
    			<div id="s1q3" class="Question">
    				Question3:<BR> <textarea cols="40" rows="5" name="myname3">
    				</textarea><BR>
    			</div>
    			<div id="s1q4" class="Question">
    				Question4:<BR> <textarea cols="40" rows="5" name="myname4">
    				</textarea><BR>
    			</div>
    			<div id="s1q5" class="Question">
    				Question5:<BR> <textarea cols="40" rows="5" name="myname5">
    				</textarea><BR>
    			</div>
    			<div id="s1q6" class="Question">
    				Question6:<BR> <textarea cols="40" rows="5" name="myname6">
    				</textarea><BR>
    			</div>
    			<div id="s1q7" class="Question">
    				Question7:<BR> <textarea cols="40" rows="5" name="myname7">
    				</textarea><BR>
    			</div>
    
    
    
    <!--
    <div id="s2q1" class="Question">
    Question1Set2:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s2q2" class="Question">
    Question2:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s2q3" class="Question">
    Question3:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s2q4" class="Question">
    Question4:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s2q5" class="Question">
    Question5:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s2q6" class="Question">
    Question6:<BR> <textarea cols="40" rows="5" name="myname6">
    </textarea><BR>
    </div>
    <div id="s2q7" class="Question">
    Question7:<BR> <textarea cols="40" rows="5" name="myname7">
    </textarea><BR>
    </div>
    
    
    <div id="s3q1" class="Question">
    Question1set3:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s3q2" class="Question">
    Question2:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s3q3" class="Question">
    Question3:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s3q4" class="Question">
    Question4:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s3q5" class="Question">
    Question5:<BR> <textarea cols="40" rows="5" name="myname">
    </textarea><BR>
    </div>
    <div id="s3q6" class="Question">
    Question6:<BR> <textarea cols="40" rows="5" name="myname6">
    </textarea><BR>
    </div>
    <div id="s3q7" class="Question">
    Question7:<BR> <textarea cols="40" rows="5" name="myname7">
    </textarea><BR>
    </div>
    -->

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Don't double post. You already started a thread about this here. http://www.codingforums.com/showthread.php?t=115360
    Don't waste our time.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry I originally thought the post was deleted. That is why I reposted. Im new to these forums


  •  

    Posting Permissions

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