How can i change options in drop down menus if they are generated dynamically using javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12872713/how-can-i-change-options-in-dropdowns-if-it-is-generated-dynamically">How can i change options in dropdowns if it is generated dynamically?</a>  </p>
</blockquote>



<p>I am using this JSFIDDLE that can generate some drop down menus and text input fields. To be specific about what it do : It generates sets of some input fields dynamically where 1 set= 3 drop downs and 1 text input field. I am using it to generate upto 15 of these on my web form that is going to be submitted to a database using PHP. </p>

<p>Here is the <a href="http://jsfiddle.net/harshdhama/E3gWX/" rel="nofollow"><strong>Fiddle</strong></a></p>

<p>What i need to do is this:<br>
Let us say that in this jsfiddle linked above some one selects 5 and click ADD button, so it will generate 5 sets of inputs dynamically where 1 set = 3 dropdowns + 1 text input field and 1 remove button to remove that particular set. Now let's take set 1. If user selects something in first dropdown of this set it should change the options available in rest of the two drop downs in this same set. (I mean to say it should change the option sin the rest of drop down menus according to the subject selected in the first drop down.)</p>

<p>For an example to what i want to do with my working jsfiddle, you can refer to this one <a href="http://jsfiddle.net/7K2Eu/63/" rel="nofollow">Chain dropdowns</a></p>

<p>I have never used javascript and this is the only javascript part that i am having in my web form and facing trouble with. NEED HELP</p>
