![]() |
| ||
| Automate undisabled a “submit button”? Help! Hi, everbody! I have this problem: There is a “textbox” and a “submit” button. “Submit button” is disabled until something is written within “text box”. I am not able to do this switch. Could anybody help me? Here you are the code: <html xmlns="http://www.w3.org/1999/xhtml">Thank you! |
| ||
| Re: Automate undisabled a “submit button”? You need to use a javascript function for this: function ChangeButtonStatus() Then in your form, add an OnBlur event to the textbox: <cfinput type="text" name="Text" id="Text" OnBlur="ChangeButtonStatus()"> |
| ||
| Re: Automate undisabled a “submit button”? 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) sorry - haven't actually tested this... |
| All times are GMT -4. The time now is 10:58 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC