Commit d79d3a8c by Kshitiz Singh

jquery .val() not .value

In line 180. It should be .val() instead of .value. This is my first edit.
parent 62f5bf48
...@@ -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