Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 737825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:45:59+00:00 2026-05-14T07:45:59+00:00

On the select event of the datepicker I need to add and set values

  • 0

On the select event of the datepicker I need to add and set values in multiple rows. In other words, I have something like this…

     Days     Value

Row 1 7

Row 2 2

Row 3 3

I have the “Days” and “Value” columns as textboxes. When I select a date from the datepicker I need to add the “Days” value for each row to the date selected. That value is what goes into the “Value” column. Example, I select 4/20/2010. The value in each respective row would then be 4/28/2010, 4/22/2010, 4/23/2010.

Hopefully this makes sense and thank you for the help in advance.

EDIT ——-

Luis, I’ve tried implementing your code with what I had and have a question. I selected from my datepicker 4/21/2010. So the first row, in my example above, should be 4/28/2010. I’m not getting that though. It’s returning 11/3/2010. Can you or someone help me please with understanding why. Thanks.

Thank you for the update. It was helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:45:59+00:00Added an answer on May 14, 2026 at 7:45 am

    say you have an input filed with an id of datePicker adn the table has an id of myTable:

      $("#myTable tr").each(
            function() {
                var calcDate = new Date($("#datePicker").val());
                calcDate.setDate(calcDate.getDate() + parseInt($(this).find("td:eq(0)").text()));
                var formatDate = (calcDate.getMonth() + 1) + "/" + calcDate.getDate() + "/" + calcDate.getFullYear()
    
                $(this).find("td:eq(1)").text(formatDate);
            }
    
     );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Like http://bit.ly/ideYPm , i need change this: function createPickers() { $(document.body).select('input.datepicker').each( function(e) { new
I have capture change event on drop down select. This drop down field is
I'm trying to use a select with an onChange event and I just need
I'm trying to fire a click event on my select options. This is working
i've a performance problem with this query: @event = Event.find_by_sql( SELECT * FROM `IdeProNew_development`.`events`
I'm using the JQuery datepicker and I have the minDate and maxDate options set
I need to select subsequently two dates from a datepicker widget, then I want
I have an event what on select adds to my bootstrap html editor the
i have code on the onSelect event of the jquery ui datepicker and i
well im using this script right here: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ and I have a multiMonth plugin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.