Method to get the field input markup for a combo box field.
{
$html = array();
$attr = '';
$attr .= !empty($this->class) ? ' class=combobox"' . $this->class . '"' : ' class="combobox"';
$attr .= $this->readonly ? ' readonly' : '';
$attr .= $this->disabled ? ' disabled' : '';
$attr .= !empty($this->size) ? ' size="' . $this->size . '"' : '';
$attr .= $this->required ? ' required aria-required="true"' : '';
$attr .= $this->onchange ? ' onchange="' . $this->onchange . '"' : '';
JHtml::_('behavior.combobox');
$html[] = '<div class="combobox input-append">';
$html[] = '<input type="text" name="' . $this->name . '" id="' . $this->id . '" value="'
. htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '"' . $attr . ' autocomplete="off" />';
$html[] = '<div class="btn-group">';
$html[] = '<button type="button" class="btn dropdown-toggle">';
$html[] = ' <span class="caret"></span>';
$html[] = '</button>';
$html[] = '<ul class="dropdown-menu">';
foreach ($options as $option)
{
$html[] = '<li><a href="#">' . $option->text . '</a></li>';
}
$html[] = '</ul>';
$html[] = '</div></div>';
return implode($html);
}