Trying to create a select option
<p>Im not sure if this site is only with asp, but I am trying to create a form in which the child fields are disabled or enabled based on whether you chose one or the other.  I was able to do it with a checkbox, but i want it to work with the drop down select value.  here is the link and the script below:</p>

<p><a href="http://www.rfdesignstudio.com/newsite/paypal.html" rel="nofollow">http://www.rfdesignstudio.com/newsite/paypal.html</a></p>

<p>Here is the select script:</p>

<pre><code>&lt;select name="type" class="input" id="type" onchange="type()"&gt;
      &lt;option value="General"&gt;General&lt;/option&gt;
      &lt;option value="Walk-a-thon"&gt;Walk-a-thon&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>and here is the function script:</p>

<pre><code>function type(){

if (document.getElementById('type').value=='Walk-a-thon') { 
   document.getElementById('child').disabled = false; 
   document.getElementById('teacher').disabled = false; 
   document.getElementById('room').disabled = false; 
   } 
else { 
  document.getElementById('child').disabled = true; 
  document.getElementById('teacher').disabled = true; 
  document.getElementById('room').disabled = true; 
  document.getElementById('child').value = ""; 
  document.getElementById('teacher').value=""; 
  document.getElementById('room').value="";}
  } 
</code></pre>
