Changing a button value

Results 1 to 2 of 2

Thread: Changing a button value

  1. #1
    Join Date
    Dec 1969

    Default Changing a button value

    I want to change button value depending on clicking on another button. how do I do that? If I click on one button I want its value to be displayed on anothe button.<BR><BR>Thanks for any help.

  2. #2
    Join Date
    Dec 1969

    Default RE: Changing a button value

    &#060;input type="button" name="button1" onclick="changeValue()" /&#062;<BR>&#060;input type="button" name="button2" value="whatever" /&#062;<BR><BR>and the function<BR><BR>function changeValue() {<BR><BR>document.forms[&#039formName&#039].elements[&#039button2&#039].value = &#039your value here&#039;<BR><BR>}

Posting Permissions

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