<script id="step1" type="text/html"> <div>Name: <input type="text" data-bind="value: Name"></div> <div>Description: <input type="text" data-bind="value: Description"></div> </script> <script id="step2" type="text/html"> Start: <br/><input type="text" id="from" data-bind="value: StartDate"> Stop:<br/> <input type="text" id="to" class="required" data-bind="value: EndDate"> </script>
$(function () { $("#from").datepicker({ defaultDate: "+1w", changeMonth: true, numberOfMonths: 1, onSelect: function (selectedDate) { $("#to").datepicker("option", "minDate", selectedDate); } }); $("#to").datepicker({ defaultDate: "+1w", changeMonth: true, numberOfMonths: 1, onSelect: function (selectedDate) { $("#from").datepicker("option", "maxDate", selectedDate); } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)