Save user form input data in a JavaScript object

preview_player
Показать описание

This tutorial shows you how to save user input from a HTML form in a JavaScript object using the native FormData() object constructor. Also covered is how to pass the form data to another page of the form via localStorage.
#javascript #html #formdata #htmlforms #webdevelopment

⚡ NEW: Web development courses from Meta Inc. ⚡

Рекомендации по теме
Комментарии
Автор

Exactly what I was looking for! Thank you so so much!

raven.
Автор

I was stuck on this concept for hours and your tutorial really helped me. Thank you.

MantraMantis
Автор

Thank you so much sir
You just plunged into the topic

buvaneswari
Автор

Thanks so much for this tutorial! I'd been struggling with this for a while, so it helped a ton :)

perorbem
Автор

Veryyyy useful, helped me a lot! Thank you for this clear tutorial 💗💗

shvchnk
Автор

Thanks for the video, but would be amazing if you could tack on a section that is more real-world applicable, where instead of saving the object to local storage, it's passed to a backend server using proper routing. Thank you!

jackepner
Автор

Thank for the great video, Now I was wondering can I use this method in my website to store contact us form data in a text file (s) to check later for message from web visitors who wishes to communicate with me ?

fakharany
Автор

can we use any other keywords or properties instead of <div> and <span>? 6:18

pratibhabade
Автор

can any clear me one thing do we need to link confirm.html or else not

nlfcisb
Автор

How does the entries overright what was alreadt there

larryjasontueno
Автор

Hey man great video, just wondering is it possible to do this exact thing but instead of going to a new page i can retrieve it on the same page? Cus im making a single page app with angular and need to do something like this, thanks.

qual
Автор

Interesting approach thanks. As far as I know, it's not best practice to store any personal information locally in the cookie or local storage.

ashkanahmadi
Автор

hi, Great video man. Is it possible to save the data to notepad on disk of the PC?

xtreemz
Автор

How would you implement this but instead of using local storage, it will be through sqlite

ljcewui
Автор

is it possible to edit whats inside the object?

untrusted
Автор

Shouldn't you be using the 'for' attribute with 'id' of the input, rather than the 'name' . It's strange but you use neither the 'id', nor the 'name', just some random 'for' values.

lucky_bus