Hey Guys!
http://63.144.103.199/FORMS/temp/2select.cfm?xp1DayId=10006
i am trying to bind the 2nd selecty max value to the selcted value of the
first select
so say first select is 1 to 5 and user selects 3, then the 2nd select would
be a loop from 1 to 3
the value of the text field is the max value i want.
but i am grabbing that by a combination of first value
then bind if the first select box is changed...
any way simple code below..
all help/advice is appreciated!
<!--- first select which is fine --->
<cfselect name="MOQ1#rsEnc.specs_partnum#" id="MOQ1#rsEnc.specs_partnum#"
style="width:50px;">
<cfloop index="i" from="1" to="#rsEnc.MOQ1#">
<option value="#i#" <cfif (is_Enc.MOQ1 EQ i)>selected</cfif>>#i#</option>
</cfloop>
</cfselect>
<!--- the value of the text field is the max value i want. --->
<cfinput type="text" bind="{MOQ1#rsEnc.specs_partnum#}"
value="#TRIM(is_Enc.MOQ1)#" name="XX#rsEnc.specs_partnum#" typeahead="no"
showautosuggestloadingicon="false" style="width:65px;" />
<!--- this is where i want the maxTo to be? --->
<cfif isdefined("is_Enc.MOQ1") AND #is_Enc.MOQ1# NEQ "">
<cfset valX = #TRIM(is_Enc.MOQ1)#>
<cfelse>
<cfset valX = #rsEnc.MOQ1#>
</cfif>
<cfselect enabled="No" name="sw#rsEnc.specs_partnum#" style="width:50px;" >
<!--- {XX#rsEnc.specs_partnum#.selectedItem.data}--->
<cfloop index="i" from="1" to="#valX#">
<option value="#i#">#i#</option>
</cfloop>
</cfselect>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:322015
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4