protected function setJavascriptValidation($name, $lang, $rule = NULL, $param = [])
    {
        $this->getJavascriptValidationFunction[$name] = $function = $name . md5($name);

        $this->validate[] = $rule ?: $lang;

        return $this->onkeyup($function . '(this, ' . Base::suffix(implode(', ', $param), ', ') . '\''.$this->setCustomValidity($lang).'\')') 
                    ->required();
    }