[Solved] How to get combo value dynamically


1) I added id attribute to the select box id="choose"

var jsonc = [
    {
        ID : 0,
        VALUE : "United State"
    },{
        ID : 1,
        VALUE : "United Kingdom"
    },{
        ID : 2,
        VALUE : "Afghanistan"
    },{
        ID : 3,
        VALUE : "Aland Islands"
    },{
        ID : 4,
        VALUE : "Albania"
    }
];

var new_opt="";
for(i=0;i<jsonc.length;i++)
{


   new_opt+='<option value="'+jsonc[i]['VALUE']+'">'+jsonc[i]['VALUE']+'</option>';
}

document.getElementById('choose').innerHTML =new_opt;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div>
              <select id="choose" data-placeholder="Choose a Country..." class="chosen-select" tabindex="4">
                <option value=""></option>
                
              </select>
            </div>

4

solved How to get combo value dynamically