protected function getOptionsForSelect($value, $choices) { $choices = dmArray::valueToKey($value ? $value : $choices); $html = parent::getOptionsForSelect($choices, $choices); // fcbkcomplete wants a class selected $html = str_replace('selected="selected"', 'class="selected"', $html); return $html; }