Notice: With the launch of Adobe Cookbooks, this site will no longer be accepting new entries or posting new content. Thanks to everyone who submitted content!

How can I pass alt tag (or other attributes) to the cfinput tag?

The cfinput tag allows you to pass any attribute. If the attribute is not one of the attributes specifically designed for the cfinput tag, the attribute and value will be rendered with the form element tag. As an example, you can use the ALT attribute in a cfinput tag for Section 508 (Accessibility) compliance.


This question was written by Raymond Camden.
It was last updated on January 29, 2007 at 10:43:28 PM EST.

Categories

Forms

Comments

Comment made by doug on January 29, 2007 at 11:01 PM
Thanks Ray, I recently discovered that even though CFEclipse was lighting up like the 4th of July when using an alt attribute, the source showed that the attribute was successfully being passed. I also found the same to be true with cftextarea. D.