如何用CI给<option></option>附加属性
如题本意是想用select做个颜色选择器;
生成如下代码:
<select name="color">
<option style="background-color:red">red</option>
<option style="background-color:green">green</option>
<option style="background-color:orange">orange</option>
</select>
看了手册,form_dropdown好像不支持给option附加属性,是这样子吗? 直接写html 颜色选择器用JS去写,没必要写成select 谢谢两位!
页:
[1]