Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript code for line break after comma

	var test = list.toString();
	// console.log("test", test)
	let dataToArray = test.split(',').map(item => item.trim());
//convert array to string replacing comma with new line
	console.log(dataToArray.join("<br />"))
	this.data[i].zoneAdd = dataToArray.join("<br />")
 
PREVIOUS NEXT
Tagged: #javascript #code #line #break #comma
ADD COMMENT
Topic
Name
1+9 =