Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Disable/Enable Form

Reply
Thread Tools

Disable/Enable Form

 
 
Shabam
Guest
Posts: n/a
 
      02-29-2004
Is there a way to present a form to a user by default with all forms
disabled, then when user clicks a link, the fields become enabled?



 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      02-29-2004
Shabam wrote:

> Is there a way to present a form to a user by default with all forms
> disabled, then when user clicks a link, the fields become enabled?


function disableAll(){
//loop through all form elements and set them to disabled = true.
}

function enableAll(){
//loop through all form elements and set them to disabled = false.
}

Call disableAll either from the body tag or from window.onload.
Search the archives for "disable all form elements"

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve form field value if form is EncType=multipart/form-dataForm? Li Zhang ASP .Net 4 02-27-2009 01:23 AM
<form>...</form> - how to supress blank space after </form> in IE? rob c Javascript 4 12-30-2005 06:10 PM
vs2005 - Open a child form based on selected record parent form's dgv - how? dbuchanan ASP .Net 2 12-19-2005 10:52 PM
Form in a form - possible ? Adam Benson ASP .Net 3 07-29-2003 09:19 AM
passing arguments from web-form to win-form Mart Rogers ASP .Net 3 07-09-2003 07:18 AM



Advertisments