Click here to Skip to main content
16,018,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have 2 TextBoxs and used datepickers .On clickin each TextBox current and next month calenders would be displayed.Now when the user selects the date in 1st calender ,in the TextBox2 3 days have to be added to the date selected in calender1.How to write an event for this
Posted

Use the event on the textbox rather be considered with the calendar

$("#date1").change( function()
{
  var date = Date.parse($this.val());
  $("#date2").text(date.getDate()+3);
});


Of course there is more to it to calculate the date properly but this should give you the idea.
 
Share this answer
 
Could you please help me with the detailed code
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900