title: change the subtotal dynamically when the quantity changes in shopping cart
body: <p>I just want the javascript code to achieve this simple thing. The subtotal price should be changed according to the quantity the user changes. If the price is 1000 and the quantity is changed to 2 the subtotal should be 2000.</p>
  
  <p>Here is My code :</p>
  
  <pre><code>&lt;input type="number" min="0" class="form-control" id="quantity" value="1"&gt;
  &lt;/td&gt;
  &lt;td&gt;
      &lt;input type="text" class="form-control" id="price" value="1000" readonly&gt;
  &lt;/td&gt;
  &lt;td&gt;
      &lt;input type="text" class="form-control" id="subTotal" value="1000"&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>I'm zero in javascript. also please show me the way to add the script inside my HTML.</p>