I am populating my multi-select dropdown from json object.
Here is my select dropdown
<select size="2" id="inst_all" style="width:200px;" multiple ng-multiple="true" ng-model="selectedCountries"
ng-options="sort.Institute as sort.Institute for sort in products | unique : 'Institute'">
</select>
I have tried with following jquery snippet , but it didnt worked.
<script>$('#inst_all option').prop('selected', true);</script>
How can i select all options be default ?