Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

join array javascript

<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>  
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #join #array #javascript
ADD COMMENT
Topic
Name
7+5 =