ColdFusion CFSELECT Alignment

posted in: Tech | 0
The “ID” attribute must be used, even if blank is the value, so that the data will left justify.
cfselect
Description: Constructs a drop-down list box form control. Used in a cfform tag. You can populate the list from a query, or by using the HTML option tag.
Category: Forms tags
Syntax
<cfselect
name=”name”
bind=”bind expression”
bindAttribute=”attribute name”
bindOnLoad=”yes|no”
display=”text”
editable=”yes|no”
enabled=”yes|no”
group=”query column name”
height=”number of pixels”
id=”HTML id”
label=”label”
message=”text”
multiple=”yes|no”
onBindError=”JavaScript function name”
onChange=”JavaScript or ActionScript”
onClick=”JavaScript function name”
onError=”JavaScript”
onKeyDown=”JavaScript or ActionScript”
onKeyUp=”JavaScript or ActionScript”
onMouseDown=”JavaScript or ActionScript”
onMouseUp=”JavaScript or ActionScript”
query=”query name”
queryPosition=”above|below”
required=”yes|no”
selected=”value or list”
size=”integer”
sourceForTooltip=”URL”
style=”style specification”
tooltip=”text”
value=”text”
visible=”yes|no”
width=”number of pixels”>
zero or more HTML option tags
</cfselect>
Some attributes apply to only specific display formats. For details see the Attributes table.
Note: You can specify this tag’s attributes in an attributeCollection attribute whose value is a structure. Specify the structure name in the attributeCollection attribute and use the tag’s attribute names as structure keys.