title: Get value from selected Table row Knockout.js
body: <p>I need a little help. </p>
  
  <p>I have created a table that gets values from JSON response, but for this example lets create a hardcoded html table like following: </p>
  
  <pre><code>&lt;table id="devtable"&gt;
      &lt;tr&gt;
          &lt;th&gt;ID&lt;/th&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th&gt;Status&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;001&lt;/td&gt;
          &lt;td&gt;Jhon&lt;/td&gt;
          &lt;td&gt;Single&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;002&lt;/td&gt;
          &lt;td&gt;Mike&lt;/td&gt;
          &lt;td&gt;Married&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;003&lt;/td&gt;
          &lt;td&gt;Marrie&lt;/td&gt;
          &lt;td&gt;Complicated&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  ID : &lt;input type="text" name="ID" data-bind="value: ID" disabled/&gt;
  &lt;br&gt;
  Name : &lt;input type="text" name="Name" data-bind="value: Name" disabled/&gt;
  &lt;br&gt;
  Status : &lt;input type="text" name="Status" data-bind="value: Status" disabled/&gt;
  &lt;br&gt;
  &lt;input type="button" value="Send" disabled/&gt;
  </code></pre>
  
  <p>Requirement is: when I select a row of table, values of columns goes to the input boxes and enable button as well. As I am trying to learn Knockout.js by doing this exercise. I think I have to make a viewmodel like this:</p>
  
  <pre><code>var rowModel = function (id, name, status) {
      this.ID = ko.observable(id);
      this.Name = ko.observable(name);
      this.Status = ko.observable(status);
  }
  </code></pre>
  
  <p>Link of project is here: <a href="http://jsfiddle.net/qWmat/" rel="nofollow">http://jsfiddle.net/qWmat/</a>  </p>