Link to home
Start Free TrialLog in
Avatar of FirePits
FirePits

asked on

onSubmit modify variable value

Here we go......I have a form with the following fields:
<select name="completedDate_Month">
<select name="completedDate_Day">
<select name="completedDate_Year">
<select name="completedBy">
<input type="text" name="timeSpent">
<input type="hidden" name="completedDate">
<input type="hidden" name="completed" value="False">

Need two things to happen onSubmit:
1) Value of the completedDate_Month/Day/Year need to combine into "mm/dd/yyyy" format and be assigned to completedDate.

2) IF timeSpent && completedBy != "" then completed = "True".

Hope this is clear, THANKS IN ADVANCE!
SOLUTION
Avatar of OMC2000
OMC2000
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FirePits
FirePits

ASKER

Both work.......thanks!