I am populating a dropdown using php in the Eval Populate field. I am creating an array[] using multiple JHTML::_('select.option', ...) statements. I wish to have one or more items in the dropdown list disabled (they are parents with children, only non-parents can be selected). I do this using the disable option of the JHTML::_ select option.
For example:
When I return the $list the dropdown is rendered but the disable option is being ignored.
For example:
Code:
$opt = JHTML::_('select.option', $item->value, $item->name );
if ( $item->children > 0 ) $opt->disable = true;
$list[] = $opt;
When I return the $list the dropdown is rendered but the disable option is being ignored.