Change Data Based on Radio Button
<p>How do I do this in javascript where when a radio button is selected only certain fields show up to type in?? Please show work (preferably with JSFiddle) :)</p>

<pre><code>    &lt;form action="inc/add_p_c_validate.php" method="post"&gt; 
    Professor&lt;input type="radio" name="addType" value="Professor" /&gt;
    &amp;nbsp;&amp;nbsp;Course&lt;input type="radio" name="addType" value="Course" /&gt; 
    &lt;br&gt;&lt;br&gt;Name: &lt;input type="text" name="name" /&gt;&lt;br&gt; 
    Department: &lt;select name="deptName"&gt;&lt;option&gt;Department 1&lt;/option&gt; &lt;option&gt;Department 2&lt;/option&gt;&lt;/select&gt;
    Email: &lt;input type="text" name="email" /&gt;&lt;br&gt;
    &lt;input type="submit" name="submit" /&gt; 
&lt;/form&gt; 
</code></pre>
