1. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Apr 2007
    Rep Power

    Automatic change of EndDate when changing StartDate

    I am trying to create a function to automatically change of EndDate when changing StartDate. For example, when I pick 2/5/2015 on StartDate, it is helpful if the EndDate calendar open to February month. Currently, the EndDate calendar opens to the currently month, which is January.
    Can someone help me?
    Here is my code:

    <tr><td><input type="text" name="StartDate" onBlur="dateCK(this)" value="" & strStartDate & ""></td><td><img src="calendar.gif" onclick="scwShow(document.getElementById('StartDat e'),this);"></td></tr>
    <tr><td><input type="text" name="EndDate" onBlur="dateCK(this)" value="" & strEndDate & ""></td><td><img src="calendar.gif" onclick="scwShow(document.getElementById('EndDate' ),this);"></td></tr>

  2. #2
  3. Contributing User
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Mar 2005
    Columbus, OH
    Rep Power
    it is javascript question...
    add logic on your scwShow function to accept value from StartDate
    __________________________________________________ _____
    if you found this post is useful click Give Rep button (bottom side on this reply ) and agree

Similar Threads

  1. MSAccess2007-StartDate/Time and EndDate/Time difference
    By rustyotters in forum Microsoft Access Help
    Replies: 12
    Last Post: April 23rd, 2010, 02:18 PM
  2. Change color after changing a record
    By Klaus Muller in forum ASP Development
    Replies: 4
    Last Post: October 9th, 2008, 11:29 AM
  3. Automatic date change
    By ghost06 in forum ASP Development
    Replies: 10
    Last Post: October 24th, 2007, 01:25 AM
  4. How to validate if the EndDate is greater than the StartDate?
    By zwieback89 in forum HTML, JavaScript And CSS Help
    Replies: 4
    Last Post: October 18th, 2006, 07:42 AM
  5. startdate enddate
    By aspnovice in forum ASP Development
    Replies: 12
    Last Post: November 8th, 2004, 03:32 AM

IMN logo majestic logo threadwatch logo seochat tools logo