diff --git a/src/widgets/TbSelect2.php b/src/widgets/TbSelect2.php index 883f3744..1286c9c9 100644 --- a/src/widgets/TbSelect2.php +++ b/src/widgets/TbSelect2.php @@ -145,7 +145,7 @@ public function registerClientScript($id) { } ob_start(); - echo "jQuery('select#{$id}').select2({$options})"; + echo "jQuery('#{$id}').select2({$options})"; foreach ($this->events as $event => $handler) { echo ".on('{$event}', " . CJavaScript::encode($handler) . ")"; }