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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -