Results 1 to 4 of 4

Thread: JavaScript -- Setting value in textfield{resolved}

Threaded View

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Resolved JavaScript -- Setting value in textfield{resolved}

    I'm trying to make a simple calculator and whenever I want to add text to the textfield(say a number) it will show up, then will dissapear.

    Code:
    function display(number) 
    { 
             var x = document.form1.displayText; 
                  x.value = number; 
    }
    This is how I'm doing it, but why is the text dissapearing right after it appears?
    Note: This method is called whenever one of the number buttons is clicked.
    Last edited by System_Error; Jul 20th, 2005 at 10:57 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width