www.webdeveloper.com
Results 1 to 2 of 2

Thread: how to use innerHTML here.

  1. #1
    Join Date
    Jan 2010
    Posts
    83

    Question how to use innerHTML here.

    hey guys in this code i have 4 textboxes in a form:
    1: invoice no:
    2: invoice date:
    3: challan no:
    4: challan date:

    [DONT WORRY ABOUT THIS "CHALLAN" WORD ITS AN INDIAN WORD!!!]

    [now the requirement is that when i enter invoice no it should come automatically into the challan no field
    and same for the date field also ]

    I think innerHTML will be used but very confused about the scriptcan u help me out????

    <form name="form1" method="post" action="">
    Invoice No:&nbsp;
    <input name="textfield4" id="totalvalue" type="text" size="25" maxlength="25" border="0">&nbsp;
    Invoice Date:&nbsp;<input name="textfield4" id="totaldatevalue" type="text" size="25" maxlength="25" border="0">
    Challan No: &nbsp;
    <input name="textfield4" id="subtotalvalue" type="text" size="25" maxlength="25" border="0">
    Challan Date:<input name="textfield4" id="subtotaldatevalue" type="text" size="25" maxlength="25" border="0">
    </form>

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    <input onblur="document.getElementById('subtotalvalue').value = this.value;" name="textfield4" id="totalvalue" type="text" size="25" maxlength="25" border="0">&nbsp;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles