HTMLHelper Plugin:Using select() with options()

Am I using the select() helper with the options() method correctly?

From the doc’s I get the impression that I should be passing into the the options attribute of select() the html.options() method populated with the recordset of options with the value column name and the display column name plus any other extra arguments to rendered out as option attributes, like class.

When I do this I get a nested <option …> block rendered out to the browser.

It seems that options() return a complete set of <option …> values for each record in the values attribute as expected but the options attribute in select() then brackets the returned string with an <option …> tag with the contents of options() method injected into the value attribute of the <option …> tag.


html.options(myRecordset, ‘ID’, ‘name’)


display 1display 2display 3

…but…‘mySelect’, options=html.options(myRecordset, ‘ID’, ‘name’))


<option value=" display 1display 2display 3display 1display 2display 3">

Upon further investigation if I do…‘mySelect’, options=myRecordset, column=‘ID’, nameColumn=‘name’))

…I get the right result but lose the ability to apply extra tag attribute to my <option…> tags.

Am I wrong or should select() be more intelligent around line 1078 when deciding what to do with the contents of the options argument?

thanks Richard, I updated the HTML helper now to do what you described, just in time for 3.5 final

Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform:
Linked In:
IECFUG Manager:


Thanks for the prompt fix Luis, works for me!