In this tutorial, We will learn how to multiple selected values or text using jquery. I will show you get multiple selected values or text in the jquery plugin. 


<html lang="en">
        <title>Select2 Multiple Selected Get Value and Text Example</title>
        <link rel="stylesheet" href="" integrity="sha256-aAr2Zpq8MZ+YA/D6JtRD3xtrwpEz2IqOS+pWD/7XKIw=" crossorigin="anonymous" />
        <script src="" integrity="sha256-OFRAJNoaD8L3Br5lglV7VyLRf0itmoBzWUoM+Sji4/8=" crossorigin="anonymous"></script>
        <script src=""></script>
        <link href="" rel="stylesheet" />
        <script src=""></script>
        <div class="row mt-5">
            <div class="col-md-6 offset-3 mt-5">
                <div class="card">
                    <div class="card-header bg-info text-white">
                        <h5>Select2 Multiple Selected Get Value and Text Example</h5>
                    <div class="card-body" style="height: 300px;">
                        <div class="row mb-2">
                            <div class="data-response col-md-12" style="display: none;">
                                <div class="alert alert-success"></div>
                        <form method="POST">
                            <div class="form-group">
                                <label>Category :</label>
                                <select class="category form-control" name="category[]" multiple>
                                    <option value="1">Laravel</option>
                                    <option value="2">Jquery</option>
                                    <option value="3">PHP</option>
                                    <option value="4">React</option>
                                    <option value="5">Jquery ui</option>
                                    <option value="6">Android</option>
                                    <option value="7">React Native</option>
                                    <option value="8">Vue js</option>
                                    <option value="9">Bootstrap 4</option>
                            <div class="form-group">
                                <button class="btn btn-success store-data btn-sm">Save</button>
        <script type="text/javascript">

            $(document).ready(function () {


            $('body').on('click', '.store-data', function (e) {

                //Get Text
                var selected = $('.category').select2("data");
                for (var i = 0; i <= selected.length - 1; i++) {

Thanks, May this example will help you...