html - joomla list from api -
how define selected in joomla list using api? if try use following snippet won't work.
jhtml::_('select.genericlist', $options, 'jform[faculty]', array('class' => 'nourritures', 'option.attr' => 'data', 'selected'=> $actual_record));
it's "list.select" not "selected":
please see http://www.fasterjoomla.com/joomla-dev/joomla-select-options-with-style complete example.
Comments
Post a Comment