join in array
var a = ['Wind', 'Water', 'Fire'];
a.join(); // 'Wind,Water,Fire'
a.join(', '); // 'Wind, Water, Fire'
a.join(' + '); // 'Wind + Water + Fire'
a.join(''); // 'WindWaterFire'<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>
Also in JavaScript:
- nodejs save blob file
- behaviorsubject in angular 10
- create angular project
- how to draw flower petals around circle javascript
- url_for javascipt
- jquery ajax endpoint
- string repeat javascript
- change text of paragraph jquery
- js array map
- console.log object to json
- jquery get img src
- sequelize where more than
- check if even or odd javascript
- empty input of clone jquery
- javascript create array of objects with key
- javascript encode url to decode C#
- cm to inches
- remove from array javascript
- expo linear gradient
- moment format datetime postgresql
- js immutable update object
- how to sum two var in jquery
- javascript time interval
- find element by object field vuejs