Disable/Enable Form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shabam

    #1

    Disable/Enable Form

    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?



  • Randy Webb

    #2
    Re: Disable/Enable Form

    Shabam wrote:
    [color=blue]
    > 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?[/color]

    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.javas cript FAQ - http://jibbering.com/faq/

    Comment

    Working...