title: How to pass a selected value in a dropdown list in one modal to another dropdown list in another modal t
body: <p>I have two dropdown lists with same values in two different modals. One is in Insert modal and the other one is in the Update modal. What i want to do is to pass the selected value of the dropdown list in Insert modal and when I open the Update modal I want that value to be selected in the dropdown list in that modal.</p>
  
  <p>Is there Anyway I can do this ? With Bootstrap, jquery, javascript ?</p>
  
  <p>Any help would be greatly appreciated. </p>
  
  <p>I have tried this </p>
  
  <pre><code>    var countryInsertID = document.getElementById('countryInsert'), 
          countryUpdate = document.getElementById('countryUpdate'), 
          option; 
          countryInsertID.onchange = function () { 
              option = document.createElement('option'); 
              option.value = this.value; 
              option.text = this.options[this.selectedIndex].text; 
              countryUpdate.appendChild(option); 
              countryInsertID.removeChild(this.options[this.selectedIndex]); 
          }
  </code></pre>