$(document).ready(function(){
// и уже потом писать скрипты
$('.myform').validate({
rules: {
firstname: {
required: true,
},
tel: {
required: true,
},
doc: {
required: true,
},
date: {
required: true,
},
time: {
required: true,
},
comment: {
required: true,
},
},
errorPlacement: function(error, element){}
});
});
$('.myform').validate({
rules: {
firstname: {
required: true,
},
tel: {
required: true,
},
doc: {
required: true,
},
date: {
required: true,
},
time: {
required: true,
},
comment: {
required: true,
},
},
errorPlacement: function(error, element){}
});
.myform input.error{
border:1px solid red;
}
.myform select.error{
border:1px solid red;
}
.myform textarea.error{
border:1px solid red;
}