вернуло 4 undefined 3 console.log и ($('#company_type') и 1 console.log($('#last_name')
Код: Выделить всё
console.log($('#company_type').val());
})(attribute, value)) { yii.validation.required(value, messages, {"message":"Необходимо заполнить «Company Form»."}); }}},{"id":"signupemployerform-company_name","name":"company_name","container":".field-signupemployerform-company_name","input":"#signupemployerform-company_name","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {if ((function (attribute, value) {
console.log($('#company_type').val());
})(attribute, value)) { yii.validation.required(value, messages, {"message":"Необходимо заполнить «Название компании»."}); }}},{"id":"signupemployerform-number_of_employees","name":"number_of_employees","container":".field-signupemployerform-number_of_employees","input":"#signupemployerform-number_of_employees","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {if ((function (attribute, value) {
console.log($('#company_type').val());
})(attribute, value)) { yii.validation.required(value, messages, {"message":"Необходимо заполнить «Количество сотрудников»."}); }yii.validation.number(value, messages, {"pattern":/^\s*[+-]?\d+\s*$/,"message":"Значение «Количество сотрудников» должно быть целым числом.","skipOnEmpty":1});}},{"id":"signupemployerform-company_site","name":"company_site","container":".field-signupemployerform-company_site","input":"#signupemployerform-company_site","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {yii.validation.url(value, messages, {"pattern":/^(http|https):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(?::\d{1,5})?(?:$|[?\/#])/i,"message":"Значение «Ваш сайт» не является правильным URL.","enableIDN":false,"skipOnEmpty":1,"defaultScheme":"http"});}},{"id":"signupemployerform-company_city","name":"company_city","container":".field-signupemployerform-company_city","input":"#signupemployerform-company_city","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Company City»."});yii.validation.number(value, messages, {"pattern":/^\s*[+-]?\d+\s*$/,"message":"Значение «Company City» должно быть целым числом.","skipOnEmpty":1});}},{"id":"signupemployerform-last_name","name":"last_name","container":".field-signupemployerform-last_name","input":"#signupemployerform-last_name","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Фамилия»."});yii.validation.string(value, messages, {"message":"Значение «Фамилия» должно быть строкой.","min":2,"tooShort":"Значение «Фамилия» должно содержать минимум 2 символа.","max":255,"tooLong":"Значение «Фамилия» должно содержать максимум 255 символа.","skipOnEmpty":1});if ((function (attribute, value) {
console.log($('#last_name').val());
})(attribute, value)) { yii.validation.required(value, messages, {"message":"Необходимо заполнить «Фамилия»."}); }}},{"id":"signupemployerform-username","name":"username","container":".field-signupemployerform-username","input":"#signupemployerform-username","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Имя пользователя»."});yii.validation.string(value, messages, {"message":"Значение «Имя пользователя» должно быть строкой.","min":2,"tooShort":"Значение «Имя пользователя» должно содержать минимум 2 символа.","max":255,"tooLong":"Значение «Имя пользователя» должно содержать максимум 255 символа.","skipOnEmpty":1});}},{"id":"signupemployerform-email","name":"email","container":".field-signupemployerform-email","input":"#signupemployerform-email","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Электронная почта»."});}},{"id":"signupemployerform-company_phone","name":"company_phone","container":".field-signupemployerform-company_phone","input":"#signupemployerform-company_phone","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Телефон»."});yii.validation.string(value, messages, {"message":"Значение «Телефон» должно быть строкой.","skipOnEmpty":1});}},{"id":"signupemployerform-company_another_phone","name":"company_another_phone","container":".field-signupemployerform-company_another_phone","input":"#signupemployerform-company_another_phone","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Дополнительный телефон» должно быть строкой.","skipOnEmpty":1});}},{"id":"signupemployerform-password","name":"password","container":".field-signupemployerform-password","input":"#signupemployerform-password","error":".help-block.help-block-error","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Пароль»."});yii.validation.string(value, messages, {"message":"Значение «Пароль» должно быть строкой.","min":6,"tooShort":"Значение «Пароль» должно содержать минимум 6 символа.","skipOnEmpty":1});}}], []);