开发者

onchange event select box in joomla

开发者_Go百科

how can i put onchange in

$regionslistx[]= JHTML::_('select.option', "0", JText::_( '--No Location--' ),'value','text' );

or

$lists['regionslist' ]= JHTML::_('select.genericlist',  $regionslistx, 'City', '', 'value', 'text', $lx );


In the second case, where you have the empty argument, place the function you would like to use:

$lists['regionslist' ]= JHTML::_('select.genericlist',  $regionslistx, 'City', 'onchange=\"YOURFUNCTION()\"', 'value', 'text', $lx );

Also check the documentation: http://api.joomla.org/Joomla-Framework/HTML/JHTMLSelect.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜