I have implemented ko validation messages in order to validate input fields. Can anyone provide guidance on how to align the validation message correctly within the specified location?
<input id="personName" class="form-control placeholder has-error" type="text"
data-bind="value: name" style="width:225px;">
ko.validation.init({insertMessages: true});
var vm = {
name: ko.observable('name').extend({required: { message: "Please enter a username.", params: true }, email: { message: "Username should be in a valid email address format which is used.", params: true }})
}
ko.applyBindings(vm);
For reference, my code can be found at http://jsfiddle.net/Td7zZ/2/