Results 1 to 3 of 3

Thread: onchange

  1. #1
    Join Date
    Dec 1969

    Default onchange

    hi,<BR>there are two comboboxes to select two dates.On selecting the dates the difference between the dates should be reflected in the textbox beneath it.<BR>How do i do it?<BR>thanx in advance..<BR>Mary

  2. #2
    Join Date
    Dec 1969

    Default RE: onchange

    you can use an onFocus() javascript event in the second combobox to call a javascript function that writes the difference between the two dates into textbox below.<BR><BR>e.g. &#060;select name="date2" onFocus="return dateFunction()"&#062;<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default Call a function..

    .. on the onChange event of both select boxes.<BR><BR>The function will need to calculate the difference (presumably in days) and then write it to the textbox.<BR><BR>You&#039;ll want to write the function in JavaScript. A great JavaScript reference is:<BR>http://www.irt.org/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts