mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-26 20:00:06 +08:00
Merge pull request #5228 from kshitizsingh/patch-1
[skip ci] jquery .val() not .value
This commit is contained in:
@@ -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';
|
||||
}"],
|
||||
]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user