JQuery populate form depending on select option selected
<p>I am trying to add some form content depending on the option selected by a user.</p>

<p>For example if the user selects form 1 option the form is populated with different content that if the user selects option 2</p>

<pre><code>&lt;select&gt;
&lt;option&gt;Form 1&lt;/option&gt;
&lt;option&gt;Form 2&lt;/option&gt;
&lt;/select&gt;

&lt;form&gt;
Here we get either form 1 content or form 2 content depending on the select option selected by user.
&lt;/form&gt;


//Form 1 content
&lt;input type="text" value="something" /&gt;
&lt;input type hidden="something here" /&gt;

//Form 2 content
&lt;input type="text" value="something else here" /&gt;
&lt;input type hidden="something else here" /&gt;
</code></pre>

<p>How can I do this using jquery?</p>
