title: How to calculate two input form fields and put the value in another without submitting the form using jquery?
body: <p>I know this is an extremely basic question  but I'm stuck on this. 
  I have two input boxes and I want to calculate those inputs and show the result  into another input (3rd one) immediately without the need of a submit button.
  I means, once I start entering the values into the input and the result will shows live in the 3rd input which is the represent the result...</p>
  
  <pre><code>&lt;input type="text" class="input value1"&gt;
  &lt;input type="text" class="input value2"&gt;
  &lt;input type="text" disabled="disabled" id="result"&gt;
  
  &lt;script&gt;
   $(document).ready(function(){
        var val1 = $(".value1").val();
        var val2 = $(".value2").val();
        $(".input").keyup(function(){
           $("#result").text(val1+val2);
         });
  });
  &lt;/script&gt;
  </code></pre>