how to pass value from dynamic combo box into textbox?
<p>I am working with PHP. When a user selects any item from a combo box, the corresponding item will display in the second combo box. I need to store this second combo box value into the textbox for further use. </p>

<pre><code>  &lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript"&gt;
            $(function(){
                $('#combo').change(function(){
                    console.log($(this));
                    $.get( "abc.php" , { option : $(this).val() } , function ( data ) {
                        $ ( '#comboB' ) . html ( data ) ;
                    } ) ;
                });
            });
        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;

                &lt;form&gt;
                    &lt;select name="combo" id="combo"&gt;
                        &lt;option value=""&gt;-- Select&lt;/option&gt;
                        &lt;option value="1"&gt; Personnel&lt;/option&gt;
                        &lt;option value="2"&gt; Area Layout&lt;/option&gt;
                          &lt;option value="3"&gt;Conference Rooms&lt;/option&gt;
                            &lt;option value="4"&gt; Small Office&lt;/option&gt;
                             &lt;/select&gt;

now abc.php
&lt;?php
    $Options = Array ( 
        1 =&gt; Array ( 
        '--',
            '15 x 20 (300 sq. ft.)' ,
            '15’ x 15’ (225 sq. ft.)',
            ' 10’ x 15’ (150 sq. ft.)',
            '12’ x 10’ (120 sq. ft.)'
        ) , 
        2 =&gt; Array ( 
            '10’ x 10’ (100 sq. ft.)' ,
            ' 8’ x 6’ (48 sq. ft.)',
            '5’ x 5’ (25 sq. ft.)'
        ) ,
         3 =&gt; Array ( 
            '15’ x 25’ (375 sq. ft.)' ,
            '15’ x 20’ (300 sq. ft.)',
            '15’ x 15’ (225 sq. ft.)'
        ) ,
         4 =&gt; Array ( 
            '8’ x 8’ (64 sq. ft.)' ,
            '8’ x 6’ (48 sq. ft.)',
            '6’ x 6’ (36 sq. ft.)',
            '4’ x 6’ (24 sq. ft.)'
        ) 
    ) ; 

    forEach ( $Options [ $_GET [ 'option' ] ] as $Item ) {
        printf ( '&lt;option value="%s"&gt;%s&lt;/option&gt;' , $Item , $Item ) ;
    }
    ?&gt;
</code></pre>
