Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

I am not able to get the selected values from a multiselect dropdown on a NewForm.aspx

$
0
0

Below is my code:

It is not working. I need to get the first value selected.

<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
    <script type="text/javascript">
        $(function () {
            //MultiLookup is filed title
            var values = $('select[title="Lead Subject Area selected values"]').children('option').map(function (i, e) {
                return e.value || e.innerText;
            }).get();
            alert(values);
        })
    </script>

thanks


faye fouladi


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>