Merge pull request #5228 from kshitizsingh/patch-1

[skip ci] jquery .val() not .value
This commit is contained in:
Alexander Makarov
2014-09-29 12:35:40 +04:00

View File

@@ -177,7 +177,7 @@ function whose return value determines whether to apply the rule or not. For exa
['state', 'required', 'when' => function ($model) {
return $model->country == 'USA';
}, 'whenClient' => "function (attribute, value) {
return $('#country').value == 'USA';
return $('#country').val() == 'USA';
}"],
]
```