If there aren't many categories, load all the extra info into the page in the place you need it to appear and hide it by default. Then on change of the drop down, show the relevant info.
With jQuery: <script type="text/javascript" src="/scripts/jquery-1.3.1.min.js"></script> <script type="text/javascript"> $(function() { $("#cats").change(function() { $(".catInfo").hide(); $("#catInfo" + jQuery(this).val()).show(); }); }); </script> <style type="text/css"> .catInfo { display: none; } </style> <select id="cats"> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select> <div id="catInfo1" class="catInfo"> Cat into 1 </div> <div id="catInfo2" class="catInfo"> Cat into 2 </div> <div id="catInfo3" class="catInfo"> Cat into 3 </div> Adrian > -----Original Message----- > From: Les Mizzell [mailto:lesm...@bellsouth.net] > Sent: 13 May 2009 18:23 > To: cf-talk > Subject: OT (maybe): Display additional info from a Select before Form > is Submitted > > > For a select box (simplified): > > <select name="catID" id="select"> > <cfloop query="getCATS"> > <option value="#getCATS.catID#">#getCATS.catNAME#</option> > </cfloop> > </select> > > I need to display additional info for each selection when the selection > is made - before the form is submitted. > So if you've got > Record 1 > Record 2 > Record 3 > ...and somebody selects "Record 2" - I need the contents of an > additional field ("cat_comments") to immediately display under the > select before the form is submitted... > > Still scratching my head. Can somebody point me in the correct > direction > to pull this off? > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:322474 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4