You are very close.

Try the following,

    var roles = $("#adminUserRoles").find(':selected');

    $.each(roles , function (index, option) {

        var value = $(option).data("value");
    });

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top