Making a list with user input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Making a list with user input

I was just wondering how i can go about making a list with what the user wants to put into the list.....for example.. lets say the user has a list of items they want to buy and they input it into the program which will create a list they can check off as they purchased the given items. I would prefer the solution to be for html and javascript code...but any help is appreciated.

17th Nov 2017, 3:02 AM
Vernon Calliou
Vernon Calliou - avatar
5 Answers
+ 5
Enter items with comma. like: Rice, milk, meat https://code.sololearn.com/cxm8nuQxjSwH/?ref=app
17th Nov 2017, 8:28 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 5
something like this??
17th Nov 2017, 8:28 AM
Justine Ogaraku
Justine Ogaraku - avatar
0
that is a cool and simple way to make an array list. very helpful thank you.
17th Nov 2017, 9:04 PM
Vernon Calliou
Vernon Calliou - avatar
0
I had also find this way of doing it online. I just need to figure out how to clear the text area after clicking the button. and also add like a check box next to the items that are added to the list.
17th Nov 2017, 9:06 PM
Vernon Calliou
Vernon Calliou - avatar
17th Nov 2017, 9:07 PM
Vernon Calliou
Vernon Calliou - avatar