How to populate a select list using a structure inside select HTML helper in ColdBox?
问题 I want to generate a select list that should look like the following- <select name="isActive"> <option value="True">Yes</option> <option value="False">No</option> </select> For this I am using select() HTML helper in ColdBox. #html.select( options=qActiveOptions, nameColumn="value", name="isActive", label="Active:", required="required", title="Active", )# Where qActiveOption is the query that I created using the code below- <cfset qActiveOptions=queryNew('name,value', "VarChar,VarChar")>