public function registerSubmitLink(string $elmId, string $formId = '', string $event = self::EVENT_CLIC, string $targetId = '', bool $preventDefault = true)
    {
        $linkSelector = '$("#' . $elmId . '").';
        $script  = $linkSelector . $event . '(function(e){';
        $script .= $preventDefault ? 'e.preventDefault();' : '';
        $target  = $targetId ? ", '" . $targetId . "'" : '';
        $formSelector = $formId
                      ? '$("#' . $formId . '")' 
                      : $linkSelector . 'prev("form")';
        //$script .= 'console.log(' . $formSelector . ');';
        $script .= '$.ajaxCall(' . $formSelector . $target . ')});';
        return $this->registerScript($script);
    }