开发者

ZF disable optgroup lable in select

To show a list of categories, I use the 'select' 开发者_运维百科in a form. I insert the categories from the database.

When I look through the select list I get something like this:

0 
art

The optgroup has a label with a number value. I want to remove the label from it so I have just in the list:

art

Without the 0 from the optgroup label.

Thanks in advice.

Nicky


  1. This is a parent element - you can't have that not to be visible and all children visible - doesn't work
  2. You would compromise the use of the optgroup

Conclusion: Just don't use optgroups if you don't want them...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜