bonjour
je recherche un script pour contrôler 2 champs date dans un formulaire
'start_date' et 'end_date'
pour contrôler que 'start_date' soit infèrieur à 'end_date'
j'ai essayé un script proposé sur le forum
mais aucun effet
quelqu'un peux t'il m'aider?
ci joint le code source des 2 champs date
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <table height="116" class="table3" > <tr> <td style="font-weight:bold; text-align:right;"><?php echo Translate("Start"); ?> :</td> <td><input type="text" id="start_date" name="start_date" style="width:80px" value="<?php echo $book_start_day; ?>"></td> <td><select id="start_hour" name="start_hour"><?php echo $hours_list; ?></select></td> </tr><tr> <td style="font-weight:bold; text-align:right;"><?php echo Translate("End"); ?> :</td> <td><input type="text" id="end_date" name="end_date" style="width:80px" value="<?php echo $book_end_day; ?>"></td> <td><select id="end_hour" name="end_hour"><?php echo $hours_list; ?></select></td>
Partager