select - cfselect problem -


i theory seems answer pre populated selectbox issue.

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

this 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 option 10 not selected automatically. html looks ok reason why?

thanks,

r.

if using firefox reason, because keeps form values persistent across page reloads. can use different browser, or add query string ?abc=123.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -