binding needs time in selectbox
<p>There are 2 selectbox when selecting the 1st select box option the corresponding option will show in the 2nd selectbox which is taking from db.when giving this <code>$('.optInSrcAccount').val(arr[10]);</code> it selects the option of the 1st selectbox. The 2nd selectbox showing the option after taking form db corresponding to the 1st selectbox option, and when giving this <code>$('#optExBankAccount').val(arr[11]);</code> it is not changing.the 1st oselectbox option is selected but not the 2nd.pls help me</p>

<pre><code>            $('.pInfoExp').live('dblclick',function(){
              var arr = $(this).attr('class').split( " " );
              if(arr[1]=='edit'){

                    $('.optInSrcAccount').val(arr[10]);
                    $('.optInSrcAccount').change();


                    if(arr[10] == 1 &amp;&amp; arr[10]){ 

                    $('#optExBankAccount').val(arr[11]);
                    $('#optExBankAccount').change();

                    }
                    $("#popExpence" ).dialog({
                          resizable: true,
                          height: 500,
                          width: 1200,
                          modal: true,
                          buttons: {
                          },
                          close: function() {

                          }
                    });
              }
</code></pre>
