| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Here's what I am doing. I have a form that has four date fields. When date1 is entered, I would like to auto-populate date2, date3, and date4, and show them on the form.
date2 = date1 - 12 date3 = date1 - 28 date4 = date1 - 42 I'm very newbie to javascript and know that I can "onblur" a single field, but I doubt I can do all three at one time that way. I'm thinking these calculations need to happen in a function that is called in the onblur=function(). In doing that, how do I retrieve my 3 new values for display in my form? Thanks for all your help. You all are great and have been very helpful. |
|
#2
|
||||
|
||||
|
Don't post the same question twice in different areas.
It won't get you question answered any faster. |
|
#3
|
||||
|
||||
|
try something like this, since I'm not completely clear on everything you are trying to do.
Code:
function ShowDate()
{
document.forms[0].txtDate2.value = Date1Value - 12;
etc...
}
|
|
#4
|
|||
|
|||
|
Quote:
It was an accident posting it in two different forums and I had no idea how to delete the one post. Sorry if I offended anyone with my double-posting. And thanks for the help. |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > can javascript function return multiple values? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|