+ 1

Did i apply form to div ? Thanks you.

Apply form to div. https://code.sololearn.com/WDLpg6efyH2B/?ref=app

2nd Apr 2021, 6:39 AM
Malick Diagne
Malick Diagne - avatar
1 Antwort
+ 2
I'm not sure what you mean by "apply form to div" but I'll comment on a few related points. Your input elements are not in a form and you have a form that has no child nodes which is unusual. Your div is a parent to the form element. You could change your JavaScript to add the div to your form instead of the other way around. That would be the quickest way to fix a lot of things including how your inputs are not in the form and your form has no child nodes. If you want JavaScript to process your form inputs instead of relying on the browser's submit event, a form element isn't really needed. You could just remove the form element if that's the case.
2nd Apr 2021, 8:13 AM
Josh Greig
Josh Greig - avatar