Skip to content

Miscellaneous

monthSelectTag()

monthSelectTag() — returns any

Builds and returns a string containing a select form control for the months of the year based on the supplied name.

NameTypeRequiredDefaultDescription
namestringyes—See documentation for textFieldTag.
selectedstringyes—The month that should be selected initially.
monthDisplaystringyesnamesSee documentation for dateSelect.
monthNamesstringyesJanuary,February,March,April,May,June,July,August,September,October,November,DecemberSee documentation for dateSelect.
monthAbbreviationsstringyesJan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,DecSee documentation for dateSelect.
includeBlankanyyesfalseSee documentation for select.
labelstringyes—See documentation for textField.
labelPlacementstringyesaroundSee documentation for textField.
prependstringyes—See documentation for textField.
appendstringyes—See documentation for textField.
prependToLabelstringyes—See documentation for textField.
appendToLabelstringyes—See documentation for textField.
<!--- This "Tag" version of the function accepts a `name` and `selected` instead of binding to a model object --->
<cfoutput>
    #monthSelectTag(name="monthOfBirthday", selected=params.monthOfBirthday)#
</cfoutput>