Monday, March 13, 2017

createalist()

function createalist() {
var thesource = document.getElementById("sns20170311sa1558theinput")
var thelistarray = thesource.value.split("\n")
for (var i = 0; i < thelistarray.length; i = i + 1) {
var thelistarray[i] = thelistarray[i].split('","')[0].split('"')[1]}
var updaterlistdiv = document.getElementById("sns20170311sa1558updaterlist")
updaterlistdiv.innerHTML = thelistarray.join("\n")}

No comments:

Post a Comment