CFSelect + Bind + Group Not Grouping

时间:2014-07-16 08:40:43

标签: coldfusion grouping coldfusion-9 cascadingdropdown cfselect

我有CFSELECT标记,如下所示,但它不会创建<optgroup>标记。我该如何存档?

<cfselect name="name" value="DB_ID" group="DB_Grouping"
display="DB_Description" selected="#Selected_ID#"
bind="cfc:[path_to_CFC]" bindOnLoad="true" style="width:305px;" />

下拉列表加载如下:

<select id="name" name="name">
    <option value="DB_ID_1">DB_Description_1</option>
    <option value="DB_ID_2">DB_Description_2</option>
    <option value="DB_ID_3">DB_Description_3</option>
    <option value="DB_ID_4">DB_Description_4</option>
</select>

而不是:

<select id="name" name="name">
    <optgroup label="DB_Grouping_1">
        <option value="DB_ID_1">DB_Description_1</option>
        <option value="DB_ID_2">DB_Description_2</option>
    </optgroup>
    <optgroup label="DB_Grouping_2">
        <option value="DB_ID_3">DB_Description_3</option>
        <option value="DB_ID_4">DB_Description_4</option>
    </optgroup> 
</select>

有人可以帮忙吗?

0 个答案:

没有答案