1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < title > Form Validation </ title >
5+ < link href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css " rel ="stylesheet ">
6+ < link href ="codding form styles.css " type = "text/css " rel ="stylesheet ">
7+ </ head >
8+ < body >
9+
10+ < div class ="container ">
11+ < div class ="header ">
12+ < h2 > CODING BUDDIES REGISTRATION FORM</ h2 >
13+ </ div >
14+ < form class ="form " id ="form ">
15+ < div class ="form-control ">
16+ < label > Username</ label >
17+ < input type ="text " name ="username " id ="username " placeholder ="Enter Your Username " autocomplete ="off " onkeyup ="validateusername(this.value) ">
18+ < i class ="fas fa-check-circle "> </ i >
19+ < i class ="fas fa-exclamation-circle "> </ i >
20+ < small > Error Msg </ small >
21+ </ div >
22+ < div class ="form-control ">
23+ < label > Email</ label >
24+ < input type ="email " name ="email " id ="email " placeholder ="Enter Your Email " autocomplete ="off " onkeyup ="validateemail(this.value) ">
25+ < i class ="fas fa-check-circle "> </ i >
26+ < i class ="fas fa-exclamation-circle "> </ i >
27+ < small > Error Msg </ small >
28+ </ div >
29+ < div class ="form-control ">
30+ < label > School / College / Organization name</ label >
31+ < input type ="text " name ="institute " id ="institute " placeholder ="Enter name accordingly " autocomplete ="off "
32+ onkeyup ="validatecollegename(this.value) ">
33+ < i class ="fas fa-check-circle "> </ i >
34+ < i class ="fas fa-exclamation-circle "> </ i >
35+ < small > Error Msg </ small >
36+ </ div >
37+ < div class ="form-control ">
38+ < label > Phone Number</ label >
39+ < input type ="number " name ="phone " id ="phone " placeholder ="Enter Your Phone Number " autocomplete ="off " onkeyup ="validatephone(this.value) ">
40+ < i class ="fas fa-check-circle "> </ i >
41+ < i class ="fas fa-exclamation-circle "> </ i >
42+ < small > Error Msg </ small >
43+ </ div >
44+ < div class ="form-control ">
45+ < label > Password</ label >
46+ < input type ="password " name ="password " id ="password " placeholder ="Enter Your Password " autocomplete ="off " onkeyup ="validatepassword(this.value) ">
47+ < i class ="fas fa-check-circle "> </ i >
48+ < i class ="fas fa-exclamation-circle "> </ i >
49+ < small > Error Msg </ small >
50+ </ div >
51+ < div class ="form-control ">
52+ < label > Retype Password</ label >
53+ < input type ="password " name ="cnfpassword " id ="cnfpassword " placeholder ="Enter Your Password again " autocomplete ="off "
54+ onkeyup ="validatecnfpass(this.value) ">
55+ < i class ="fas fa-check-circle "> </ i >
56+ < i class ="fas fa-exclamation-circle "> </ i >
57+ < small > Error Msg </ small >
58+ </ div >
59+ < div class ="box ">
60+ < input type ="checkbox " name ="terms " id ="terms " onchange ="validatecheckbox(this) ">
61+ < label for ="terms "> I have read all the Terms and Conditions</ label >
62+ < small > Agree to Terms & Conditions checkbox </ small >
63+ </ div >
64+
65+ < input type ="submit " class ="btn " value ="Submit " name ="submit " >
66+
67+ < script src ="https://unpkg.com/sweetalert/dist/sweetalert.min.js "> </ script >
68+ < script src ="codeform.js "> </ script >
69+ </ body >
70+ </ html >
0 commit comments