Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS within CFSelect tag?

Status
Not open for further replies.

DrumAt5280

Technical User
Sep 8, 2003
194
US
I have tried adding a class to the <cfselect> tag to add a background color to a pulldown box, however the color is not adding.

Is CSS classes not allowed within this tag?

Code:
<CFSELECT NAME="csFk" class="red"
		QUERY="GetSuburb"
		VALUE="suburbId"
		DISPLAY="suburb" >
		<OPTION value="0" selected>-- all location --</option>
	</CFSELECT>
 
livedocs said:
In addition to the listed attributes, you can use the following HTML attributes in the cfform tag without using the passThrough attribute. The tag does not use these attributes, but includes them in the HTML of the form tag that it generates and returns to the browser:

class
id
onBlur
onChange
onClick
onDblclick
onFocus
style
tabIndex

passthrough said:
passThrough
Optional

Passes one or more arbitrary attribute-value pairs to the HTML code that is generated for the tag. You can use either of the following formats to include the quotation marks around the attribute value:

passthrough="ID=""myID"""

passthrough='ID="myID"'

The second format, which surrounds all the attribute-value pairs to be passed through in single quotation marks is clearer, particularly when you pass multiple HTML attributes.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top