Nieuw lid |
|
Hoe kan ik de volgende code gebruiken in vbhtml ?
Ik wil graag een input veranderen in een DateTimepicker
<script src="./jquery.js"></script>
<script src="./jquery.datetimepicker.js"></script>
<script>
$('#datetimepicker').datetimepicker({
dayOfWeekStart: 1,
lang: 'nl',
startDate: '2015/01/1 11:00'
});
</script>
*vbhtml* <div class="form-group">
@Html.LabelFor(Function(model) model.Runtime, htmlAttributes:= New With { .class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(Function(model) model.Runtime, New With { .htmlAttributes = New With { .id = "datetimepicker" } })
@Html.ValidationMessageFor(Function(model) model.Runtime, "", New With { .class = "text-danger" })
</div>
</div>
|