this is using disabled to keep them visible: <input type="radio" onclick="showHide()" value="true" name="UseDifferentShippingAddress">
<div id="DifferentShippingAddress"> <inputs with values> </div> function showHide(){ if($(this).is(":checked")){ $("input, select, textarea", "#DifferentShippingAddress").attr("disabled","disabled"); } else{ $("input, select, textarea", "#DifferentShippingAddress").removeAttr("disabled"); } } ~Mahcsig On Tue, Oct 13, 2009 at 8:16 AM, Tony Bentley <t...@tonybentley.com> wrote: > > Sure: > > <input type="radio" onclick="showHide()" value="true" > name="UseDifferentShippingAddress"> > > <div id="DifferentShippingAddress" style="display:none"> > <inputs with values> > </div> > > function showHide(){ > if($(this).is(":checked")){ > $("#DifferentShippingAddress").show(); > } > else{ > $("#DifferentShippingAddress").hide(); > } > } > > This is untested but basically the div uses a showhide function that > toggles the form to be visible using the radio controller. You'll need to > handle to blank fields in your CF logic no matter if it shows or not. You > can use a case statement against form.UseDifferentShippingAddress to decide > if you want to include the other form fields. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327129 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4