Select2 doesn't show selected value
Select2 loads all items from my list successful, the issue I found when try to select a specific value when page loads. Example: :: put select2 in a specific html element, no value is selected even all items are loaded. $('#my_id').select2(); :: When the page is loaded I'm trying to show a specific item selected, but doesn't work as expected, because even selected, the select2 doesn't show it. $('#my_id').val('3'); //select the right option, but doesn't render it on page loads. How to make a selected option to pop up when pages loads? Thanks in advance. UPDATED :: How I load all select2 items