Required field validation is not working properly | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Required field validation is not working properly

I have create a multiselect form but the required field validation is not working. Please guide me how can i fix this problem. code: https://code.sololearn.com/WQWLYeefqHB5

10th Apr 2020, 11:47 PM
MUHAMMAD ASIF
MUHAMMAD ASIF - avatar
2 Answers
+ 1
line 456: <script type='text/javascript'> this script tag has no closing tag... and anyway, is of none use... delete it, and your javascript will run without complaining (looks like it works as expected for the fiels validation, but you have some php code inside your html wich could be problematic if you didn't serve your file from a php backend ^^)
11th Apr 2020, 2:20 AM
visph
visph - avatar
0
Unfortunately I will add this code on wordpress so need to done in php
11th Apr 2020, 2:49 AM
MUHAMMAD ASIF
MUHAMMAD ASIF - avatar