how to set same date first text box to second text box and id increment by counter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lalit444
    New Member
    • Jul 2014
    • 1

    how to set same date first text box to second text box and id increment by counter

    how to set the value of date because usre put the date in first line and same date become in 2nd line date..nd date id m increment by counter so plz tell me how to set 1st line date in second line.


    Code:
     <input type="text"   name="deliveryDate<%=i%>" id="deliveryDate<%=i%>" maxlength="10"  style="text-align: left; width:70px"  onclick="return checkDt(this);" /> 
    							<a href="javascript:NewCssCal('deliveryDate<%=i%>','ddmmyyyy')"><img src="images/cal.gif" width="18" height="17" border="0" alt="Pick a date"></a>
    Attached Files
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    you can use the change-event to retrieve the current set value - then manipulate it and set the value to the desired textbox after you have retrieved the node reference of the mentioned textbox with:

    Code:
    document.getElementById(id)
    for example.

    Comment

    Working...