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 3 of 3

Thread: Help with "or"

  1. #1
    Regular Coder
    Join Date
    Aug 2005
    Posts
    252
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Help with "or"

    Code:
    window.onload=function() {
    document.forms[4].demo.onclick=function(){
       DisableButton(this);
      }
     }
    function DisableButton(b) {
       b.disabled=true;
       b.value=' Disabled for Demo ';
       b.className='disabledDemo'
     }
    Hi! This needs to be 4 or 5. How can I add or 5?
    Last edited by Errica; 12-26-2008 at 03:49 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Code:
    window.onload=function() {
    document.forms[4].demo.onclick=function(){
       DisableButton(this);
      }
    document.forms[5].demo.onclick=function(){
       DisableButton(this);
      }
     }
    ?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    Errica (12-26-2008)

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Posts
    252
    Thanks
    23
    Thanked 0 Times in 0 Posts
    Works great, thanks!


  •  

    Posting Permissions

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