var GetModelData = function (data) { self.EventDateTime = ko.observable(data.EventDateTime).extend({ required: { params: true, message: "What's the date of the event?" } }); };
<div class="input-group date"> <input type='text' placeholder="Event Date" data-toggle="tooltip" data-original-title="Event Date is Required" id="eventDateTimePicker" class="form-control" data-date-format="DD/MM/YYYY hh:mm A" data-bind="validationOptions: { errorElementClass: 'validation_errormsg' }" /> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> <span data-bind="validationMessage: EventDateTime" class="app--validation--error-message"></span> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)