1
我的理論似乎是預填充選擇框問題的答案。cfselect問題
<cfselect name = "regions" query = "getRegions" selected="10" value="id" display="name" ></cfselect>
這是它outouts
<option value="8">Dumfries & Galloway</option>
<option value="9">Dundee City</option>
<option value="10" selected="selected">East Ayrshire</option>
<option value="11">East Dunbartonshire</option>
,但沒有自動選擇我的選擇10。爲什麼html看起來沒有問題?
感謝,
R.
只是和想法:你使用Firefox嗎?如果您執行F5,它將使先前選定的選項保持活動狀態通過地址欄重新加載頁面應重置表單。 – Sergii 2010-09-24 07:38:08
是的,做得好Sergii !! – Roscoeh 2010-09-24 07:56:54
或者使用CTRL-F5進行硬刷新! – 2010-09-24 09:00:41