/** * Get option attributes * * @param mixed $value Value * @param mixed $text Text * * @return array */ protected function getOptionAttributes($value, $text) { $attributes = parent::getOptionAttributes($value, $text); $attributes['data-value'] = $text; return $attributes; }