1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$("#ajout").click(function(){
$("#datepicker1").attr('value','');
$("#heuredebut").attr('value','08:00');
$("#datepicker2").attr('value','');
$("#heurefin").attr('value','08:00');
});
});
</script>
</head>
<body>
<form method="POST" action="#">
<input type="text" id="datepicker1" value="" />
<select id="heuredebut">
<option value="08:00">08:00</option>
<option value="09:00">09:00</option>
<option value="10:00">10:00</option>
</select>
<input type="text" id="datepicker2" value="" />
<select id="heurefin">
<option value="08:00">08:00</option>
<option value="09:00">09:00</option>
<option value="10:00">10:00</option>
</select>
<input type="image" id="ajout" src="..." />
</form>
</body>
</html> |