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
|
<div class="form-group">
<label for="birthdate" class="col-sm-3 control-label">Date de naissance</label>
<div class="col-sm-9">
<div class="input-group date" id="birthdatepicker">
<input type="text" id="birthdate" name="birthdate" class="form-control">
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
$('#birthdatepicker').datetimepicker({
viewMode: 'years',
format: 'DD/MM/YYYY',
allowInputToggle: true
});
var data = transForm.serialize('#contactInformationForm');
data = JSON.stringify(data);
jQuery.ajax({
type: type,
url: url,
contentType: "application/json",
data: data,
dataType: 'json',
success: function (data, status, jqXHR) {
} |
Partager