show or hide component with a trigger from multiplied combo box
<p>I can't show or hide a component from a multiplied combo box, but I can show or hide it from an original combo box(the first combo box)
what should I do..?</p>

<p>this is function to multiply the combo box</p>

<pre><code>function addEmploy() {}
    $('#addEmploy').click(function(){
        $('#comboEmploy')
        .append('&lt;br /&gt;')
        .append($('#comboEmploy select').first().clone());
    });
</code></pre>

<p>this is script to show or hide the component</p>

<pre><code>$("#employ").change(function() {
        if($(this).val() == "2"){
            $("#comboStudy").show("slow");
        }else{
            $("#comboStudy").hide("slow");
        }
    });
</code></pre>

<p>This is the combo box</p>

<pre><code>&lt;span id="comboEmploy"&gt;
                &lt;select name="employ[]" id="employ"&gt;
                    &lt;option value="NULL" selected &gt;Choose one&lt;/option&gt;
                    &lt;?php foreach ($employs as $employ) :?&gt;
                        &lt;option value="&lt;?php echo $employ-&gt;employ_id; ?&gt;"&gt;
                        &lt;?php echo $employ-&gt;employ_name; ?&gt;&lt;/option&gt;
                    &lt;?php endforeach; ?&gt;
                &lt;/select&gt;
            &lt;/span&gt;
&lt;a href="#" id="addEmploy"&gt;Add Employ&lt;/a&gt;
</code></pre>

<p>This is the component that I want to show/hide</p>

<pre><code>&lt;span id="comboStudy"&gt;
            &lt;select name="study[]" id="study"&gt;
                &lt;option selected value=NULL&gt;Choose one&lt;/option&gt;
                &lt;?php foreach ($studies as $study) :?&gt;
                        &lt;option value="&lt;?php echo $study-&gt;study_id; ?&gt;"&gt;
                        &lt;?php echo $study-&gt;study_name; ?&gt;&lt;/option&gt;
                &lt;?php endforeach; ?&gt;
            &lt;/select&gt;
            &lt;/span&gt;
</code></pre>

<p>Can anyone help me. thanks before.</p>
