I have 2 multi select drop downs: #ListData and #ListChart.
Both of these have identical items in them. What I like do do is when I select #ListData, I like to have #ListChart have the identical items selected.
I have the following but not working in that #ListChart does not update to have the same items as #ListData.
$('#ListData').change(function(){
var selectedItems = $('#ListData').val();
$("#ListChart").val(selectedItems);
$("#ListChart").multiselect("refresh");
}
Below is what the array looks like:
I figure that the value is modify but the displaying component is not correctly update, try this :