Categories
CMS Joomla Mastering Development

custom form list field add disabled options

i have a working list based on an sql query – now i would like to add some spacers (not selectable items) – when doing this manually in xml you can add the disabled attr to that item but how can i do that when filling the list like so: $cities = array( array(‘value’ => […]