-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.js
31 lines (27 loc) · 988 Bytes
/
custom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$(document).ready(function () {
$("#b").click(function () {
fname = $(".txtfname").val();
lname = $("#txtlname").val();
fatname = $("#txtfatname").val();
motname = $("#txtmotname").val();
add = $("#address").val();
course = $("#course").val();
phone = $("#phn").val();
state = $("#state").val();
pwd = $("#pwd").val();
cpwd = $("#cpwd").val();
if (fname.length == "" || lname.length == "" || fatname.length == "" || motname.length == "" || add.length == "" || course == "" || phone.length == 0 || state == "" || pwd.length == "" || cpwd.length == "") {
}
else if (add.length < 3) {
alert("Enter Correct Address");
}
else if (phone.length != 10) {
alert("Enter valid phone number");
}
else if(pwd != cpwd){
alert("password did not match");
}
else{
}
});
});