Vote count:
0
I am trying to access the letters array from outside the function. Do I have to use Ajax to do so?
JS:
Sortable.create(el, {
onUpdate: function(event) {
var update = event.target.innerText;
var letters = update.split("");
console.log(letters);
}
});
I tried having a global variable letters and trying to return letters[0].
asked 1 min ago
Access array from outside the function
Aucun commentaire:
Enregistrer un commentaire