$(".phone").mask("8 (999) 999-9999");
$('#feedback-form').validate({
errorClass: "invalid",
errorElement: "div",
rules: {
username: {
required: true,
minlength: 2,
maxlength: 15
},
email: {
required: true,
email: true
},
phone: "required",
},
messages: {
username: {
minlength: jQuery.validator.format("от 2 до 15 символов"),
maxlength: jQuery.validator.format("до 15 символов"),
required: "укажите имя"
},
phone: {
required: "укажите телефон"
},
email: {
email: "введите корректный email",
required: "укажите email"
},
},
});
<glyph glyph-name="css3" unicode="" horiz-adv-x="1792"
d="M275 1408h1505l-266 -1333l-804 -267l-698 267l71 356h297l-29 -147l422 -161l486 161l68 339h-1208l58 297h1209l38 191h-1208z" />
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal
}