Connecting Tech Pros Worldwide Help | Site Map

Title attribute for cfinput tag

Familiar Sight
 
Join Date: Sep 2007
Posts: 221
#1: Oct 19 '07
How do you add a title attribute to a coldfusion input element? I tried adding title attributes on my cfinput's but they are being erased. How am I supposed to do this?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Oct 20 '07

re: Title attribute for cfinput tag


According to the documentation, the title attribute is not listed for cfinput. Is this for a tooltip?

PS. changed thread title.
Familiar Sight
 
Join Date: Sep 2007
Posts: 221
#3: Oct 21 '07

re: Title attribute for cfinput tag


Quote:

Originally Posted by acoder

According to the documentation, the title attribute is not listed for cfinput. Is this for a tooltip?

PS. changed thread title.

Yes it's for a tooltip.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Oct 22 '07

re: Title attribute for cfinput tag


Use the passthrough attribute, e.g.
Expand|Select|Wrap|Line Numbers
  1. passthrough='title="myTitle"'
Familiar Sight
 
Join Date: Sep 2007
Posts: 221
#5: Oct 22 '07

re: Title attribute for cfinput tag


Quote:

Originally Posted by acoder

Use the passthrough attribute, e.g.

Expand|Select|Wrap|Line Numbers
  1. passthrough='title="myTitle"'

Excellent, thanks for the info acoder!
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Oct 22 '07

re: Title attribute for cfinput tag


No problem, you're welcome.
Reply