remove ="true" and it should work <cfloop query="myquery_1">
<option value="#ID#" <cfif ID EQ ID>selected</cfif>>#Description#</option> </cfloop> Andrew. >Ok I've spent that last 2 hours tearing my hair out trying to figure out >what was wrong in my code. When I come to the realization to test it in IE >and bam it works. I have a dynamically generated Select drop down that >marked the option tag selected that is the value I want. Firefox is ignoring >the selected attribute but IE picks it up just fine. Has anyone else run >into this problem before? > > > ><cfoutput> > ><cfset xID = 3> > ><select name="groupID"> > ><cfloop query="myquery_1"> > ><option value="#ID#" <cfif ID EQ >ID>selected="true"</cfif>>#Description#</option> > ></cfloop> > ></select> > ></cfoutput> > > > >BTW I've tried it several ways: > ><option value="#ID#" <cfif ID EQ >ID>selected="selected"</cfif>>#Description#</option> > ><option value="#ID#" <cfif ID EQ >ID>selected="true"</cfif>>#Description#</option> > ><option value="#ID#" <cfif ID EQ ID>selected</cfif>>#Description#</option> > > > >None of the above worked in FireFox but all of them worked in IE. I've >googled my brains out but every were I've seen people post about this, there >is never a solution. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282327 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4