Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Date validation
11-22-2010, 02:13 PM #1
- Join Date
- Dec 2009
- Thanked 0 Times in 0 Posts
Got input boxes for begin and end dates - using JQuery for date picker calendar for each. Need to validate 2 things - 1 is that end date is => than begin date, 2 is that user enters date into begin date rather than just numbers.
I got date picker JQuery from another office where I work and can not change their parameters or code. So my input boxes allow for date picker selection or manual data entry.
The end date input box can be empty if user only inputting one day for begin date and not a range.
Also have 3 more begin/end date input box sets which are not visible until user clicks "Add Row" button - one click, one set added. Want to insure if user added row and input date then removed row (clicked "Remove Row" button) that the data entered is removed and not inserted into database.
Add & remove rows:
<td><input style="width: 70px" type="text" id="startdate1" name="startdate1" /></td> <td><input name="stopdate1" style="width: 70px" type="text" id="stopdate1"/></td>
11-22-2010, 04:18 PM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,673 Times in 2,649 Posts
Have you tried using the search feature of this forum? This was covered very recently at
Setting user inputed date. Post#7.
If the display property is set to none, then the element is actually removed from page completely, and is not available.
It is your responsibility to die() if necessary….. - PHP Manual