+ 2

problem in multiple form validation bootstrap forms

i have at least two form in one page but all forms are dependent on the first form, The fields of the first form must be filled in order for the validation of the rest of the forms to work correctly. what is problem? my code: https://www.sololearn.com/compiler-playground/WG16aep2TE8U

18th Feb 2023, 6:17 AM
Hadi
Hadi - avatar
5 Antworten
+ 3
Thanks a lot PanicS for making the code link work.🙏 Hadi this looks the classic problem of doing DOM operations before DOM has finished loading. 😄 Please put all your DOM operations like - getElementById, querySelector, addEventListener inside a window.onload callback. Let us know if it still doesn't work. Happy coding! 👍
18th Feb 2023, 7:36 PM
Morpheus
Morpheus - avatar
+ 2
Your link can't be opened in app, only on pc. To add code new time please use "+", don't copy/paste link. Here is code, I edited link so it can work in app: https://code.sololearn.com/WG16aep2TE8U/?ref=app
18th Feb 2023, 8:26 AM
PanicS
PanicS - avatar
+ 1
Hadi I can see the code working flawlessly. Is it still not working?
19th Feb 2023, 5:23 AM
Morpheus
Morpheus - avatar
0
tanks for replay, with put on window.onload callback not worked
19th Feb 2023, 4:19 AM
Hadi
Hadi - avatar
0
yes, on submit "users" form it depend fill all filed "office" form
19th Feb 2023, 5:44 AM
Hadi
Hadi - avatar