How can I take user inputs from forms add, edit and delete from list items on my html page. Just like adding a to-do list. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I take user inputs from forms add, edit and delete from list items on my html page. Just like adding a to-do list.

Taking forms input to add inputed data to list items or tables on html using javascript. Should be able to edit and delete as well. And how I can search for stored date to bring up other items stored on that date.

6th Jul 2020, 5:54 AM
Edward Ndiyo
Edward Ndiyo - avatar
6 Answers
+ 1
On a simple serverless website you can use javascript to get the input of form fields create an object with the data and the store the object in an array which holds all the items. You can the search by looping through that array. On a sever website you can use a database and sql querying.
6th Jul 2020, 6:35 AM
JME
0
JME thanks so much but I'm still learning js and so I understand very little of what you're asking me to do but I'll search further on how to get it done
17th Jul 2020, 3:42 AM
Edward Ndiyo
Edward Ndiyo - avatar
0
Calviղ didn't help but thanks
17th Jul 2020, 3:44 AM
Edward Ndiyo
Edward Ndiyo - avatar
0
Edward Ndiyo you cannot save data and retrieve it later from frontend HTML and JavaScript. The form need to submit the data to backend server, store on server database, so that frontend can be accessed the data again from server later. In this regard, you need to learn server script, node.js or php, and database, mysql or nosql.
17th Jul 2020, 5:12 AM
Calviղ
Calviղ - avatar
0
Actually you can! Learn about IndexedDB. It is a JavaScript-based database API shipped into most browsers. https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
17th Jul 2020, 7:10 AM
Ore
Ore - avatar
- 1
Edward Ndiyo this Express.js code which I did previously maybe helping you. https://code.sololearn.com/W3DRtKjPKE98/?ref=app
6th Jul 2020, 8:19 AM
Calviղ
Calviղ - avatar