I will be pulling values from a table, and the select2 will be populated with ajax in a form. I will not have the ID numbers (although the ID numbers could be searchable). How do I either find the ID numbers that select2 is initialized with, or set the select2 using the .text only value without using .val?s
select2 will set the value like this;
$('#nwco').val('2');
select2 will not select2 will set the value like this;
$('#nwco').text('Item 1');