JSFiddle - React, Tailwind, and code Playground

by Vikash Kumar Gupta

HTML

<script src="http://knockoutjs.com/downloads/knockout-3.2.0.js"></script>
<p>Login name:
  <input data-bind="textInput: userName" />
</p>
<p>Password:
  <input type="password" data-bind="textInput: userPassword" />
</p>


<input data-bind="value: userName, disable:true" />

JavaScript

ko.applyBindings({
  userName: ko.observable(""), // Initially blank
  userPassword: ko.observable("abc") // Prepopulate
});