diff --git a/StarRating.php b/StarRating.php index 1526a72..6b293ee 100644 --- a/StarRating.php +++ b/StarRating.php @@ -54,7 +54,7 @@ protected function registerAssets() { $view = $this->getView(); $clientOptions = Json::encode($this->clientOptions); - $js = '$("div#' . $this->options['id'] . '").raty(' . $clientOptions . ');'; + $js = 'jQuery("div#' . $this->options['id'] . '").raty(' . $clientOptions . ');'; $view->registerJs($js); }