I have this html code and i want to get the values of the select2-search-choice div values
<div class="select2-container select2-container-multi form-control multi-select" id="s2id_project_banker_ids">
<ul class="select2-choices">
<li class="select2-search-choice">
<div>Sam Chong</div>
<a href="#" class="select2-search-choice-close" tabindex="-1"></a>
</li>
<li class="select2-search-choice">
<div>Beh Li Shiew</div>
<a href="#" class="select2-search-choice-close" tabindex="-1"></a>
</li>
<li class="select2-search-field">
<label for="s2id_autogen23" class="select2-offscreen"></label>
<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" id="s2id_autogen23" name="s2id_autogen24" placeholder="" data-validate="true" aria-activedescendant="select2-result-label-198" style="width: 42px;">
</li>
</ul>
</div>
So far what i did was this which seems to work but i am looking for a more efficient way of executing this code
project_bankers = []
$.each($('#s2id_project_banker_ids').find('li.select2-search-choice'), function(index, choice) {
project_bankers.push(choice.children[0].innerHTML)
})
So just checking is there any more efficient way to do this?