Hi, I have a form where a user inputs words into a text box, the number of words can range from 1 to 100, these words are separated by a comma followed by a space, just, like, this, however, these are placed into a variable which is then stringify'd but it comes out as: ["cat1, cat2, cat3"] as opposed to ["cat1", "cat2", "cat3"], So i need it to wrap double quotes around however many words that are entered where the stringify'd result would be ["cat1"] or ["cat1", "cat2", "cat3"] or ["cat1", "cat2", "cat3", "cat4", "cat5"] or however many words they type,
I hope i have explained my question adequately, thank you
Le sujet est déplacé de la section Javascript vers la section Let's talk!
How to wrap double quotes around a string of varia
× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
× Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.