<html> <select multiple class="select-colors"> <option>blue</option> <option>green</option> </select> </html> <script> var myColorSelect = $(".select-colors").val().join(); console.log(myColorSelect); </script>