@Alex-Archer-I
Posted
Hi! It's quite a decent work =)
I can suggest you to get used to add name
attribute to every input
field of your form. It'll be very important in the future when you'll use forms to send data to the server.
Also learn about FormData
object. This is a special object to collect data from the forms via JS. It makes sending data to the server more convenient and requires a name
attribute too.
In my turn I learned from your code another way to check validation in the script. I used regular expression but maybe it is a bit overkill =)
Good luck and happy coding =)
Marked as helpful
@yoyov51234
Posted
@Alex-Archer-I Hi Alex,
Thank you very much for the feedback, I will look into the way you suggested and update the code, I will review your solution and feedback later~! Happy coding together~