开发者

How to add "title" attribute of option tag when using JTHML in Joomla

开发者 https://www.devze.com 2023-03-23 08:11 出处:网络
\"option\" tag has \"title\" att开发者_JAVA技巧ribute to display extra information about element.

"option" tag has "title" att开发者_JAVA技巧ribute to display extra information about element. But when I create a selection in Joomla with JHTML, for example:

JHTML::_('select.option', $elementId, $elementName);

I can't add "title" attribute to my elements.

Is there any way we could add "title" attribute to "select.option" when using JHTML?

Thank you for answers!


JHTML::_('select.option', $elementId, $elementName, $optKey);

You should look in the file /libraries/joomla/html/html/select.php. It has a little bit of documentation, maybe that works for you. Besides, the title attribute does not exist for the HTML <option> tag, as you can see in the following link: http://www.w3schools.com/tags/tag_option.asp

0

精彩评论

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