...

View Full Version : Working with commented HTML Code.



robbymo
06-03-2007, 07:38 PM
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?



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

_Aerospace_Eng_
06-03-2007, 08:54 PM
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.

robbymo
06-03-2007, 09:07 PM
sorry I originally thought the post was deleted. That is why I reposted. Im new to these forums



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum