how do i get input values inputted into input field 'in real-time' and use the input values?
here's code i've tried:
i'm not sure i've asked this clearly but i hope someone understands me
9 Replies
you can use an "input" eventlistener on form elements.
if you put everthing inside a <form> you can even do it on that one alone
i'm not using a form. do i need to rewrite my code?
ive made a quick example.
https://codepen.io/MarkBoots/pen/WNKvLZM?editors=1111
you can see the output in the console
formData() ❤️
that's what it's made for. always used it
pen remove, backup
whew! not used that before, long ting for me, gotta read up. thank you @MarkBoots
I started off using....form.[name of input] to get the properties but when I started backend formdata made it easier when transferring images especially