User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 374,157 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,441 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:

Automate undisabled a “submit button”?

Join Date: Oct 2005
Posts: 8
Reputation: jamba is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
jamba jamba is offline Offline
Newbie Poster

Re: Automate undisabled a “submit button”?

  #3  
Apr 30th, 2008
cmhamton has provided the solution - but just to expand:
So as to open the function to any form and any form objects:

function toggleObj(frmFld,frmBtn) 
{
//frmFld = the Form Field to check for value
//frmBtn = the Form Button to disable/enable

if(frmFld.value.length>0)
{
frmBtn.disabled=false;
}
else
{
frmBtn.disabled=true;
}
}

sorry - haven't actually tested this...
Reply With Quote  
All times are GMT -4. The time now is 3:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC