title: How to get sum of 2 numbers using JQuery
body: <p>What I am trying to is, the user will enter the first number in the first textbox, then enter the second number in the second textbox. After the user presses the summation button, he will get the result in the result in the textbox under the summation button. Here is what I tried to do:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;script     src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"&gt;    &lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
        $("#add").click(function(){
          $("#sub") = parseFloat($("#a").value) + parseFloat($("#b").value);
        })
      })
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;form name="myform"&gt;
        &lt;p&gt;
          &lt;input type="text" id="a"&gt;
          &lt;input type="text" id="b"&gt;
        &lt;/p&gt;
  
        &lt;p&gt;
          &lt;input type="button" value = "+" id="add"&gt;
          &lt;input type="text" id="sub"&gt;
        &lt;/p&gt;
      &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>