Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2004
    Location
    Kentucky
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Reset button and disabled field problems

    One more for the night.....

    I have a disabled field that is assigned it's value with the page onLoad event.

    When I hit my reset button, it deletes the content of this field which is also disabled with the onLoad event.

    I've put a function on the reset button to control what it does and I've played with true and false on that button too; all with no luck.

    Here is what I have now:

    function ResetThisForm(){
    document.REG.reset();
    getDateStr();//this is the function that runs onLoad of the form, assigns a value to a text field on the form and disables that field
    }

    -- Always thankful for kind and patient teachers willing to help a beginner.

  • #2
    New Coder
    Join Date
    Jan 2004
    Location
    Kentucky
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Still like to know how to do it manipulating the Reset button.....found a couple applicable threads earlier that are close and I'll study them later.

    For now....I've taken a bypass and ran the onLoad function again before submitting the form. That did the trick!

    -- Always thankful for kind and patient teachers willing to help a beginner.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •