Javascript - Simple form script to hide/show fields
<p>Im looking for a simple script in javascript that i can extend, at a basic level Im looking to show 1 field based on which option from a <code>&lt;select&gt;</code> the user chooses. </p>

<pre><code>&lt;select id="options"&gt;
  &lt;option value="spoon"&gt;Spoon&lt;/option&gt;
  &lt;option value="form"&gt;Fork&lt;/option&gt;
&lt;/select&gt;

if select=spoon {
  &lt;input&gt;enter your favorite soup&lt;/input&gt;
} else {
  &lt;input&gt;Your gonna need a knife&lt;/input&gt;
}
</code></pre>

<p>Simple JS is the key!</p>
