element['class'] ? ' class="combobox ' . (string) $this->element['class'] . '"' : ' class="combobox"'; $attr .= ((string) $this->element['readonly'] == 'true') ? ' readonly="readonly"' : ''; $attr .= ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : ''; $attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : ''; $attr .= $this->required ? ' required="required" aria-required="true"' : ''; // Initialize JavaScript field attributes. $attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : ''; // Get the field options. $options = $this->getOptions(); // Load the combobox behavior. JHtml::_('behavior.combobox'); // Build the input for the combo box. $html[] = ''; // Build the list for the combo box. $html[] = ''; return implode($html); } }