I have i grid where after changing the row the 18 drop downs should get populated. I ahve writen a piece of code but it populate the value to all the drop down. for example i have 2 classes each of them has day assigned to it. so when i click on the grid item i only want to see 1 of the drop down populated with this date. Instead i get 2 drop downs populated
<cfoutput> <cfloop query="TempQuery"> <cfif TempQuery.accessType neq ''> //Set a temp variable to hold the current comboBox value var temp#accessType#; //Loop through all the comboBox values for(var i = 0; i < access#accessType#.length; i++){ if (myGrid.selectedItem.accessType == temp#accessType#) { //set the comboBox to the current index access#accessType#.selectedIndex=i; //set temp to the value of the comboBox temp#accessType#=access#accessType#.value; //if temp equals the selected clientID then stop looping through the comboBox //alert (myGrid.selectedItem.accessValue); if(temp#accessType#==myGrid.selectedItem.accessValue){ break; } } } </cfif> </cfloop> </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:316210 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4