as follows <input type="radio" id="apple" name="Fruit" value="Apple"<cfif databasevalue eq "apple"> checked="checked" </cfif> />
and then add the rest for the other buttons. Rob On Mon, Nov 10, 2008 at 2:31 PM, Me Gupta <[EMAIL PROTECTED]> wrote: > HI, > I guess this is a rather basic question, but I am really having a hard time > finding a solution. > > I have a group of radio buttons. Data from the db should determine which > button is checked. How do I set this? > > It is like this - the code for intitial display of the page is like- > > <input type="radio" id="apple" name="Fruit" value="Apple" > checked="checked"/> > <input type="radio" id="mango" name="Fruit" value="Mango" > > <input type="radio" id="orange" name="Fruit" value="Orange"> > > Depending on data I retrieve, I may want to change the button selection to > "Orange". How do I do this? > > Thanks a lot > DG > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315050 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4