I'm very new to ColdFusion and learning things as I go. I'm wondering how to import an array into a dropdown list. I created the array and the dropdown but can't get it to work properly. I would like to see a quick example.
Please help thanks...
The following is a very simplistic example. Please lookup each tag in the documentation to see how they can be used:
<cfset aOptions = ArrayNew(1)>
<cfset aOptions = "one">
<cfset aOptions = "two">
<cfset aOptions = "three">
<select id="cbdlComboboxDropdownList" name="cbdlComboboxDropdownList">
<cfloop array="#aOptions#" index="OptionItem">
Sorry for the formatting issues.
Thank you so much for the example. Worked out perfect.
Would you happen to know by any chance how to turn this in a filtering/search form? I have 3 dropdowns I would like to create and then filter the records from the table.