How can I get the text of the value that was selected when the page was first loaded select2
Hi I am new using select2 framework.
When the page is loaded for the first time, I bring the value in the session selected.
Then I want to get the text of that value but it always returns the text of the first value.