Partage
  • Partager sur Facebook
  • Partager sur Twitter

How to wrap double quotes around a string of varia

    1 novembre 2018 à 8:52:51

    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

    • Partager sur Facebook
    • Partager sur Twitter
      1 novembre 2018 à 9:04:03

      Bonjour,

      Mauvais forum

      Le sujet est déplacé de la section Javascript vers la section Let's talk!

      • Partager sur Facebook
      • Partager sur Twitter

      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.
      • Editeur
      • Markdown