public function jsPopup()
    {
        $name = $this->triggerBy;
        if (!is_string($this->triggerBy)) {
            $name = '#'.$this->triggerBy->name;
            if ($this->triggerBy instanceof FormField\Generic) {
                $name = '#'.$this->triggerBy->name.'_input';
            }
        }
        $chain = new jQuery($name);
        $chain->popup($this->popOptions);
        if ($this->stopClickEvent) {
            $chain->on('click', new jsExpression('function(e){e.stopPropagation();}'));
        }

        return $chain;
    }