Dynamically set tab indexes using ColdFusion

First set the index to “0”

<cfset tabIndex = 0>

Then add the following code into your input fields.

 tabindex="#++tabIndex#"

Be sure to wrap your code in outputs… duh!

Advertisements