You need to use a javascript function for this:
function ChangeButtonStatus()
{
if (document.getElementById("Text").value.length > 0)
{
document.getElementById("submit").disabled = false;
}
else
{
document.getElementById("submit").disabled = true;
}
}
Then in your form, add an OnBlur event to the textbox:
<cfinput type="text" name="Text" id="Text" OnBlur="ChangeButtonStatus()">
cmhampton
Junior Poster in Training
79 posts since Feb 2008
Reputation Points: 23
Solved Threads: 10