Commit d1dbda5c by Alexander Makarov

Merge pull request #5228 from kshitizsingh/patch-1

[skip ci] jquery .val() not .value
parents 475aeeab d79d3a8c
...@@ -177,7 +177,7 @@ function whose return value determines whether to apply the rule or not. For exa ...@@ -177,7 +177,7 @@ function whose return value determines whether to apply the rule or not. For exa
['state', 'required', 'when' => function ($model) { ['state', 'required', 'when' => function ($model) {
return $model->country == 'USA'; return $model->country == 'USA';
}, 'whenClient' => "function (attribute, value) { }, 'whenClient' => "function (attribute, value) {
return $('#country').value == 'USA'; return $('#country').val() == 'USA';
}"], }"],
] ]
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment