Disable/Enable Form

Discussion in 'Javascript' started by Shabam, Feb 29, 2004.

  1. Shabam

    Shabam Guest

    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?
     
    Shabam, Feb 29, 2004
    #1
    1. Advertising

  2. Shabam

    Randy Webb Guest

    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/
     
    Randy Webb, Feb 29, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Patrick
    Replies:
    1
    Views:
    660
  2. Henrik Hjøllund Hansen

    Dynamically enable/disable an element inside a form.

    Henrik Hjøllund Hansen, Dec 18, 2003, in forum: HTML
    Replies:
    2
    Views:
    4,589
    Jukka K. Korpela
    Dec 19, 2003
  3. Age Bosma

    Enable/Disable form elements

    Age Bosma, Oct 10, 2003, in forum: Javascript
    Replies:
    0
    Views:
    121
    Age Bosma
    Oct 10, 2003
  4. joe t.
    Replies:
    3
    Views:
    201
    Michael Winter
    Mar 17, 2005
  5. prisk

    enable/disable dynamic form elements

    prisk, Sep 16, 2006, in forum: Javascript
    Replies:
    0
    Views:
    115
    prisk
    Sep 16, 2006
Loading...

Share This Page