JSFiddle - React, Tailwind, and code Playground
HTML
<pre data-bind="text: ko.toJS($data)"></pre>
<pre data-bind="text: JSON.stringify(ko.toJS($data))"></pre>
JavaScript
var viewModel = {
description: ko.observable('some description'),
dateOfLost: ko.observable('01/01/2012'),
plaintiffFirmName: ko.observable('Johnson, Brand & Tall'),
claimantName: ko.observable(),
claimNum: ko.observable(),
getFormData:function () {
alert('event');
GetClaimData();
}
};
ko.applyBindings(viewModel)