+ 9
How to get array from input text?
I want to get the input text of html in the form of array in JavaScript. so please tell me how can I get it.
2 Respuestas
+ 8
thanks Proff
+ 7
you can convert your string to an array with .split() method.
if you use e.g input.value.split("") then it will make an array where every single letter of your text is a different value in array