public function registerScript()
    {
        ChosenBootstrapAsset::register($this->getView());
        $clientOptions = Json::encode($this->clientOptions);
        $id = $this->options['id'];
        $this->getView()->registerJs("jQuery('#$id').chosen({$clientOptions});");
    }
public function registerScript()
    {
        ChosenBootstrapAsset::register($this->getView());
        $clientOptions = Json::encode($this->clientOptions);
        $id = $this->options['id'];
        $this->getView()->registerJs("jQuery('#$id').chosen({$clientOptions});");
    }
public function registerScript ( ) { ChosenBootstrapAsset :: register ( $ this -> getView ( ) ) ; $ clientOptions = Json :: encode ( $ this -> clientOptions ) ; $ id = $ this -> options [ 'id' ] ; $ this -> getView ( ) -> registerJs ( "jQuery('#$id').chosen({$clientOptions});" ) ; }
Registers chosen.js
Registers chosen . js