#Help with Js and Form Data

1 messages · Page 1 of 1 (latest)

tawdry pendant
#

Hello good evening, I tell you that I am learning Js and node, to practice with rest api I created one with json-server, everything goes well until I reach the post method and request the form data, in my case I have seen that it can be used form data, but I have a problem when the button does submit, it does not make the post or keep the data in the form, the code is as follows.

winter root
#

That error means it tried to access a property on a variable, but instead of being an object it was null. The only place I see "addEventListener" is on fp, so make sure that's what you expect. Looks like your id might be wrong or missing

#

Start off logging "fp" to see what it is and work backwards from there