1

I theory seems to be the answer to the pre populated selectbox issue.

<cfselect name = "regions" query = "getRegions" selected="10" value="id" display="name" ></cfselect> 

this is what it 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>

but my option 10 is not selected automatically. The html looks ok any reason why?

Thanks,

R.

Roscoeh
  • 59
  • 1
  • 4

1 Answers1

0

If you are using Firefox then that is probably the reason, because it keeps form values persistent across page reloads. You can use a different browser, or add something to the query string like ?abc=123.

Regular Jo
  • 5,190
  • 3
  • 25
  • 47
erikvold
  • 15,988
  • 11
  • 54
  • 98