title: Cannot get input field value in knockout
body: <p>I am trying to pass a value from the input field using knockout, so here is a form </p>
  
  <pre><code>&lt;form&gt;
    &lt;input id="amount"  type="text"  placeholder="Amount in &amp;euro;" data-bind="value : amount" /&gt;
    &lt;button class="button1" type="submit"  data-bind="click: $root.invest_first_pageview" &gt;Invest&lt;/button&gt; 
    &lt;button class="button2" type="submit"  data-bind="click: $root.borrow_first_pageview" &gt;Borrow&lt;/button&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p>and I am trying to get the value in my knockout js file like this,</p>
  
  <pre><code>self.invest_first_pageview = function () {
      alert("HELLO");
      window.location.href = BASEURL + "index.php/moneyexchange/invest_first_page/" + self.amount();
  };
  
  // Navigates to the desired URL allowing editing the money specified.
  self.borrow_first_pageview = function () {
      window.location.href = BASEURL + "index.php/moneyexchange/borrow_first_page/" + self.amount();
  };
  </code></pre>
  
  <p>But it looks like the <code>self.amount()</code> is not getting any values.</p>