$(document).ready(function() { $("#myform").validate({ rules: { "Author.FirstName": { required: true }, "Author.LastName": { required: true }, "Author.EmploymentTypeId": { required: true, range: [1, 10] } }, messages: { "Author.FirstName": { required: "Proszę podać imię autora." }, "Author.LastName": { required: "Proszę podać nazwisko autora." }, "Author.EmploymentTypeId": { required: "Proszę wybrać typ zatrudnienia.", range: "" } } }); });