<form id="myform">
<label>Date</label>
<input type="date" name="mydate">
<label>Heure</label>
<input name="mytime">
<button class="zdk-bt-yes">Submit</button>
</form>
<script>
$(function() {
$("#myform").zdkform({
ready: function() {
$(this).find('input[name=mytime]').attr('type','time');
},
complete: function () {
var formData = $(this).zdkform('getFormData',true),
message = "Form validated successfully:\n\n";
for (i = 0; i < formData.length; i++) {
var inputValue = formData[i].value === "" ? "<empty>" : "'"
+ formData[i].value + "'";
message += "° " + formData[i].name
+ " = " + inputValue + "\n";
}
alert(message);
}
});
});
</script>
<form id="myform">
<label>Date</label>
<input type="date" name="mydate">
<label>Time</label>
<input type="time" name="mytime">
<button class="zdk-bt-yes">Submit</button>
</form>