By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

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

P: 1
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.


Expand|Select|Wrap|Line Numbers
  1.  <input type="text"   name="deliveryDate<%=i%>" id="deliveryDate<%=i%>" maxlength="10"  style="text-align: left; width:70px"  onclick="return checkDt(this);" /> 
  2.                             <a href="javascript:NewCssCal('deliveryDate<%=i%>','ddmmyyyy')"><img src="images/cal.gif" width="18" height="17" border="0" alt="Pick a date"></a>        
Attached Images
File Type: png ddddd.png (3.6 KB, 92 views)
Jul 3 '14 #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,320
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:

Expand|Select|Wrap|Line Numbers
  1. document.getElementById(id)
for example.
Jul 11 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.