-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
28 lines (27 loc) · 831 Bytes
/
script.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
$(document).ready(function() {
console.log('Welcome');
$('.signup').validate({ // initialize the plugin
rules: {
name: {
required: true,
},
username: {
required: true,
minlength: 5
},
email: {
required: true,
email: true
}
},
// invalidHandler: function(event, validator) {
// var errors = validator.numberOfInvalids();
// $('input').css('box-shadow', '0 10px 0px -7px #de3226, 0 10px 0px -7px #de3226');
// console.log(errors);
// },
submitHandler: function (form) { // for demo
alert('valid form submitted'); // for demo
return false; // for demo
}
});
});